summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-05-19 15:38:18 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2009-05-19 15:38:18 (GMT)
commitc171d57ed0491fb7db86621d0f2e5f5e832d2132 (patch)
tree30abdc372c5a23641f3e936488a648598ef20b21 /Modules/FindQt4.cmake
parent9c2dcf48362a82819bb1ca2ae6b139c938103d5b (diff)
downloadCMake-c171d57ed0491fb7db86621d0f2e5f5e832d2132.zip
CMake-c171d57ed0491fb7db86621d0f2e5f5e832d2132.tar.gz
CMake-c171d57ed0491fb7db86621d0f2e5f5e832d2132.tar.bz2
ENH: Better error message for those who switch from Qt3 to Qt4 and don't clean their cache file.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r--Modules/FindQt4.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index 7c66cb5..1e22bb1 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -291,10 +291,10 @@ ENDIF( Qt4_FIND_COMPONENTS )
# If Qt3 has already been found, fail.
IF(QT_QT_LIBRARY)
IF(Qt4_FIND_REQUIRED)
- MESSAGE( FATAL_ERROR "Qt3 and Qt4 cannot be used together in one project.")
+ MESSAGE( FATAL_ERROR "Qt3 and Qt4 cannot be used together in one project. If switching to Qt4, the CMakeCache.txt needs to be cleaned.")
ELSE(Qt4_FIND_REQUIRED)
IF(NOT Qt4_FIND_QUIETLY)
- MESSAGE( STATUS "Qt3 and Qt4 cannot be used together in one project.")
+ MESSAGE( STATUS "Qt3 and Qt4 cannot be used together in one project. If switching to Qt4, the CMakeCache.txt needs to be cleaned.")
ENDIF(NOT Qt4_FIND_QUIETLY)
RETURN()
ENDIF(Qt4_FIND_REQUIRED)
@@ -630,14 +630,14 @@ IF (QT4_QMAKE_FOUND)
)
# Set QT_INCLUDE_DIR by removine "/QtCore" in the string ${QT_QTCORE_INCLUDE_DIR}
- IF( QT_QTCORE_INCLUDE_DIR AND NOT QT_INCLUDE_DIR)
+ IF( QT_QTCORE_INCLUDE_DIR )
IF (QT_USE_FRAMEWORKS)
SET(QT_INCLUDE_DIR ${QT_HEADERS_DIR})
ELSE (QT_USE_FRAMEWORKS)
STRING( REGEX REPLACE "/QtCore$" "" qt4_include_dir ${QT_QTCORE_INCLUDE_DIR})
SET( QT_INCLUDE_DIR ${qt4_include_dir})
ENDIF (QT_USE_FRAMEWORKS)
- ENDIF( QT_QTCORE_INCLUDE_DIR AND NOT QT_INCLUDE_DIR)
+ ENDIF( QT_QTCORE_INCLUDE_DIR )
IF( NOT QT_INCLUDE_DIR)
IF(Qt4_FIND_REQUIRED)