summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-13 13:25:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-13 13:25:29 (GMT)
commit908db09b473724473a24af2ef2510add8536d29a (patch)
tree906dcaeca3ea2c30b283f8647a651ba5d7bd5691 /Modules
parent16ef79b555a65e86db4675ec0d0df09999f435fd (diff)
downloadCMake-908db09b473724473a24af2ef2510add8536d29a.zip
CMake-908db09b473724473a24af2ef2510add8536d29a.tar.gz
CMake-908db09b473724473a24af2ef2510add8536d29a.tar.bz2
ENH: add some checks on the qmake install
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt4.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index 32281ae..7d61a78 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -145,7 +145,12 @@ IF(QT4_QMAKE_FOUND)
EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE}
ARGS "-query QT_INSTALL_LIBS"
OUTPUT_VARIABLE QT_LIBRARY_DIR_TMP )
- SET(QT_LIBRARY_DIR ${QT_LIBRARY_DIR_TMP} CACHE PATH "Qt library dir")
+ IF(EXISTS "${QT_LIBRARY_DIR_TMP}")
+ SET(QT_LIBRARY_DIR ${QT_LIBRARY_DIR_TMP} CACHE PATH "Qt library dir")
+ ELSE(EXISTS "${QT_LIBRARY_DIR_TMP}")
+ MESSAGE("Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as ${QT_LIBRARY_DIR_TMP}")
+ MESSAGE("Warning: ${QT_LIBRARY_DIR_TMP} does not exist, Qt must not be installed correctly.")
+ ENDIF(EXISTS "${QT_LIBRARY_DIR_TMP}")
ENDIF(NOT QT_LIBRARY_DIR)
IF (APPLE)
@@ -715,5 +720,8 @@ IF(QT4_QMAKE_FOUND)
SET( QT_QT_LIBRARY "")
SET( QT_QTMAIN_LIBRARY "")
ELSE(QT4_QMAKE_FOUND)
- MESSAGE("QT_QMAKE_EXECUTABLE set to qmake version: QTVERSION = ${QTVERSION}\nQT_QMAKE_EXECUTABLE = ${QT_QMAKE_EXECUTABLE}, please set to path to qmake from qt4.")
+ IF(QT_QMAKE_EXECUTABLE)
+ MESSAGE("QT_QMAKE_EXECUTABLE set to qmake version: QTVERSION = ${QTVERSION}\nQT_QMAKE_EXECUTABLE = ${QT_QMAKE_EXECUTABLE}, please set to path to qmake from qt4.")
+ ENDIF(QT_QMAKE_EXECUTABLE)
+
ENDIF(QT4_QMAKE_FOUND)