From a39ee97c6cfe19e2170e0e5eccbfb8b1be3b1f48 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Tue, 9 Nov 2010 21:51:59 +0100 Subject: [PATCH] Fix #11421: FindQt3.cmake doesn't honor the REQUIRED keyword Alex --- Modules/FindQt3.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/FindQt3.cmake b/Modules/FindQt3.cmake index 3606a5f4f..1319de27d 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} )