[Qt] Add top-level .qmake.conf
[WebKit.git] / Tools / qmake / mkspecs / features / default_pre.prf
index 9a041879c0d5a062f6281f2142caa2f4fe18fdc8..01cc41a7cdf9315b3d86f5b7624909359169a647 100644 (file)
@@ -69,9 +69,11 @@ win32* {
     isEmpty(pwd_starts_with_slash): CONFIG += win_cmd_shell
 }
 
     isEmpty(pwd_starts_with_slash): CONFIG += win_cmd_shell
 }
 
-# Make sure QMAKEPATH is set for recursive targets
-win_cmd_shell: QMAKE_QMAKE = \(set QMAKEPATH=$$(QMAKEPATH)\) && $$QMAKE_QMAKE
-else: QMAKE_QMAKE = QMAKEPATH=$$(QMAKEPATH) $$QMAKE_QMAKE
+haveQt(4) {
+    # Make sure QMAKEPATH is set for recursive targets
+    win_cmd_shell: QMAKE_QMAKE = \(set QMAKEPATH=$$(QMAKEPATH)\) && $$QMAKE_QMAKE
+    else: QMAKE_QMAKE = QMAKEPATH=$$(QMAKEPATH) $$QMAKE_QMAKE
+}
 
 # Default location of generated sources
 GENERATED_SOURCES_DESTDIR = generated
 
 # Default location of generated sources
 GENERATED_SOURCES_DESTDIR = generated