diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-11-09 20:51:59 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-11-09 20:51:59 (GMT) |
commit | a39ee97c6cfe19e2170e0e5eccbfb8b1be3b1f48 (patch) | |
tree | bb052f74ee4a4522c6e750b37f0a78586e77db34 /Modules/FindQt3.cmake | |
parent | c8f6c33ec8a9bb9372bf9c800699e6cfd19533b7 (diff) | |
download | CMake-a39ee97c6cfe19e2170e0e5eccbfb8b1be3b1f48.zip CMake-a39ee97c6cfe19e2170e0e5eccbfb8b1be3b1f48.tar.gz CMake-a39ee97c6cfe19e2170e0e5eccbfb8b1be3b1f48.tar.bz2 |
Fix #11421: FindQt3.cmake doesn't honor the REQUIRED keyword
Alex
Diffstat (limited to 'Modules/FindQt3.cmake')
-rw-r--r-- | Modules/FindQt3.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindQt3.cmake b/Modules/FindQt3.cmake index 3606a5f..1319de2 100644 --- a/Modules/FindQt3.cmake +++ b/Modules/FindQt3.cmake @@ -242,9 +242,9 @@ IF (QT_MIN_VERSION) ENDIF (QT_MIN_VERSION) # if the include a library are found then we have it -IF(QT_INCLUDE_DIR AND QT_QT_LIBRARY) - SET( QT_FOUND "YES" ) -ENDIF(QT_INCLUDE_DIR AND QT_QT_LIBRARY) +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Qt3 DEFAULT_MSG QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE) +SET(QT_FOUND ${QT3_FOUND} ) IF(QT_FOUND) SET( QT_LIBRARIES ${QT_LIBRARIES} ${QT_QT_LIBRARY} ) |