summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-11 02:36:58 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-11 02:36:58 (GMT)
commitf9a3e38bfb7c819d664f1010f4f90f0b863f6343 (patch)
tree9e2f970ec11d75e45eb7cb9c498ac82598069591 /Modules/FindQt.cmake
parentf8c259b443c95d2fce7f0ed7fd75e1acaf69b056 (diff)
downloadCMake-f9a3e38bfb7c819d664f1010f4f90f0b863f6343.zip
CMake-f9a3e38bfb7c819d664f1010f4f90f0b863f6343.tar.gz
CMake-f9a3e38bfb7c819d664f1010f4f90f0b863f6343.tar.bz2
ENH: only print errors if QT_REQUIRED is set
Diffstat (limited to 'Modules/FindQt.cmake')
-rw-r--r--Modules/FindQt.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 5aab2d4..4074443 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -126,7 +126,9 @@ ELSE(NOT QT3_INSTALLED AND NOT QT4_INSTALLED)
ENDIF(QT_REQUIRED)
ENDIF(NOT QT_FOUND AND NOT DESIRED_QT_VERSION)
IF(NOT QT_FOUND AND DESIRED_QT_VERSION)
- 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(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.")
+ ENDIF(QT_REQUIRED)
ENDIF(NOT QT_FOUND AND DESIRED_QT_VERSION)
ENDIF(NOT QT3_INSTALLED AND NOT QT4_INSTALLED)
MARK_AS_ADVANCED(QT3_QGLOBAL_H_FILE QT4_QGLOBAL_H_FILE QT_QMAKE_EXECUTABLE)