summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-03-26 15:04:18 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-03-26 15:04:18 (GMT)
commitff561cd1d30f7644672130bfc52d84910ebdfb8a (patch)
treee87afc35ac7b153d08dfc134505aedd950372ce1 /Modules/FindQt4.cmake
parent9b41f200adf2937e083a94e26587a7e71d83536d (diff)
downloadCMake-ff561cd1d30f7644672130bfc52d84910ebdfb8a.zip
CMake-ff561cd1d30f7644672130bfc52d84910ebdfb8a.tar.gz
CMake-ff561cd1d30f7644672130bfc52d84910ebdfb8a.tar.bz2
ENH: Do a recheck of QT_MAC_USE_COCOA when qmake executable changes.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r--Modules/FindQt4.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index e745605..2050dec 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -669,6 +669,9 @@ IF (QT4_QMAKE_FOUND)
CHECK_SYMBOL_EXISTS(Q_WS_QWS "QtCore/qglobal.h" Q_WS_QWS)
CHECK_SYMBOL_EXISTS(Q_WS_MAC "QtCore/qglobal.h" Q_WS_MAC)
IF(Q_WS_MAC)
+ IF(QT_QMAKE_CHANGED)
+ UNSET(QT_MAC_USE_COCOA CACHE)
+ ENDIF(QT_QMAKE_CHANGED)
CHECK_SYMBOL_EXISTS(QT_MAC_USE_COCOA "QtCore/qconfig.h" QT_MAC_USE_COCOA)
ENDIF(Q_WS_MAC)