summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-12 14:33:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-12 14:33:55 (GMT)
commit1b421ccf75b946529375d74af93b0a25e743fb7b (patch)
treeac044583d0fd7afc843f0992765a0e505732fd37 /Modules
parent3587b472f87aa1b7bc2c1e1bd0b8ba4e8d1bf6f7 (diff)
downloadCMake-1b421ccf75b946529375d74af93b0a25e743fb7b.zip
CMake-1b421ccf75b946529375d74af93b0a25e743fb7b.tar.gz
CMake-1b421ccf75b946529375d74af93b0a25e743fb7b.tar.bz2
ENH: add a better message
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 51564ca..40c84d1 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -129,7 +129,9 @@ ELSE(NOT QT3_INSTALLED AND NOT QT4_INSTALLED)
ENDIF(NOT QT_FOUND AND NOT DESIRED_QT_VERSION)
IF(NOT QT_FOUND AND DESIRED_QT_VERSION)
IF(QT_REQUIRED)
- MESSAGE(SEND_ERROR "CMake was unable to find QT version: ${DESIRED_QT_VERSION}. Set advanced values QT_QMAKE_EXECUTABLE and QT${DESIRED_QT_VERSION}_QGLOBAL_FILE.")
+ IF(NOT QT_QT_LIBRARY)
+ SET(MSG "QT_QT_LIBRARY was not found.
+ MESSAGE(SEND_ERROR "CMake was unable to find QT version: ${DESIRED_QT_VERSION}. Set advanced values QT_QMAKE_EXECUTABLE and QT${DESIRED_QT_VERSION}_QGLOBAL_FILE, if those are set then QT_QT_LIBRARY or QT_LIBRARY_DIR.")
ELSE(QT_REQUIRED)
MESSAGE( "CMake was unable to find desired QT version: ${DESIRED_QT_VERSION}. Set advanced values QT_QMAKE_EXECUTABLE and QT${DESIRED_QT_VERSION}_QGLOBAL_FILE.")
ENDIF(QT_REQUIRED)