diff options
author | Brad King <brad.king@kitware.com> | 2008-03-17 15:10:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-17 15:10:42 (GMT) |
commit | 7a888b68daa674690088f0beaf1a83fa8e409138 (patch) | |
tree | bc21d74ec3f7bcf2ceba288da2cf0610f5fcfff1 /Modules/FindQt4.cmake | |
parent | 98e06794dd2b4554e1fc82314edc9a5c7a232d7d (diff) | |
download | CMake-7a888b68daa674690088f0beaf1a83fa8e409138.zip CMake-7a888b68daa674690088f0beaf1a83fa8e409138.tar.gz CMake-7a888b68daa674690088f0beaf1a83fa8e409138.tar.bz2 |
ENH: Added FindPackageMessage module
- Defines FIND_PACKAGE_MESSAGE function to help display
find result messages only once
- Added use of it to FindPackageHandleStandardArgs
- Added use of it to FindQt4, and FindX11
- This cleans up repeated messages in big projects
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index bd19027..663ff54 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -1232,9 +1232,9 @@ IF (QT4_QMAKE_FOUND) # if the includes,libraries,moc,uic and rcc are found then we have it IF( QT_LIBRARY_DIR AND QT_INCLUDE_DIR AND QT_MOC_EXECUTABLE AND QT_UIC_EXECUTABLE AND QT_RCC_EXECUTABLE) SET( QT4_FOUND "YES" ) - IF( NOT Qt4_FIND_QUIETLY) - MESSAGE(STATUS "Found Qt-Version ${QTVERSION}") - ENDIF( NOT Qt4_FIND_QUIETLY) + INCLUDE(FindPackageMessage) + FIND_PACKAGE_MESSAGE(Qt4 "Found Qt-Version ${QTVERSION}" + "[${QT_LIBRARY_DIR}][${QT_INCLUDE_DIR}][${QT_MOC_EXECUTABLE}][${QT_UIC_EXECUTABLE}][${QT_RCC_EXECUTABLE}]") ELSE( QT_LIBRARY_DIR AND QT_INCLUDE_DIR AND QT_MOC_EXECUTABLE AND QT_UIC_EXECUTABLE AND QT_RCC_EXECUTABLE) SET( QT4_FOUND "NO") SET(QT_QMAKE_EXECUTABLE "${QT_QMAKE_EXECUTABLE}-NOTFOUND" CACHE FILEPATH "Invalid qmake found" FORCE) |