diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-01-26 21:26:00 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-01-26 21:33:33 (GMT) |
commit | 2dee9294969ff5ef85a4dacb13de70b8a9de03db (patch) | |
tree | 5aabc3ea0e8ad9ea673dc7f4e0c85975db4503bd /Tests | |
parent | 3c4b4fffd0a6739e8771e4d552d98d21d294a84b (diff) | |
download | CMake-2dee9294969ff5ef85a4dacb13de70b8a9de03db.zip CMake-2dee9294969ff5ef85a4dacb13de70b8a9de03db.tar.gz CMake-2dee9294969ff5ef85a4dacb13de70b8a9de03db.tar.bz2 |
CMakeOnly.AllFindModules: suppress two modules from testing
FindPackageHandleStandardArgs and FindPackageMessage match the glob
expression but are nothing that will usually be fed into find_package().
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeOnly/AllFindModules/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/CMakeOnly/AllFindModules/CMakeLists.txt b/Tests/CMakeOnly/AllFindModules/CMakeLists.txt index 0c22e00..308177d 100644 --- a/Tests/CMakeOnly/AllFindModules/CMakeLists.txt +++ b/Tests/CMakeOnly/AllFindModules/CMakeLists.txt @@ -21,12 +21,17 @@ endmacro(do_find) # is therefore also blocked set(NO_QT4_MODULES "Qt3" "KDE3") +# These modules are named Find*.cmake, but are nothing that works in +# find_package(). +set(NO_FIND_MODULES "PackageHandleStandardArgs" "PackageMessage") + set(DESIRED_QT_VERSION 4) foreach(FIND_MODULE ${FIND_MODULES}) string(REGEX REPLACE ".*/Find(.*)\\.cmake$" "\\1" MODULE_NAME "${FIND_MODULE}") list(FIND NO_QT4_MODULES ${MODULE_NAME} NO_QT4_INDEX) - if (NO_QT4_INDEX EQUAL -1) + list(FIND NO_FIND_MODULES ${MODULE_NAME} NO_FIND_INDEX) + if (NO_QT4_INDEX EQUAL -1 AND NO_FIND_INDEX EQUAL -1) do_find(${MODULE_NAME}) endif () |