another attempt at solving the popping up of .qmake.cache problem
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 9 Mar 2012 18:11:54 +0000 (19:11 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 9 Mar 2012 19:43:00 +0000 (20:43 +0100)
syncqt may generate that file also as a result of configure tests. so
just check for the file's existence instead of trying to reproduce under
which circumstances it should appear.

Change-Id: Ia24f96b05fc70e104f7be19d08cea614ffb505be
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
mkspecs/features/default_pre.prf

index 5d8684b..c3776c4 100644 (file)
@@ -48,7 +48,7 @@ CONFIG = lex yacc warn_on debug uic resources $$CONFIG
     }
 
     # Let qmake know about the unexpectedly appearing cache file.
-    contains(QTFWD, -cache-module-fwd):_QMAKE_CACHE_ = $$QMAKE_SYNCQT_OUTDIR/.qmake.cache
+    exists($$QMAKE_SYNCQT_OUTDIR/.qmake.cache):_QMAKE_CACHE_ = $$QMAKE_SYNCQT_OUTDIR/.qmake.cache
 
     unset(QTFWD)
     unset(PRO_BASENAME)