[Cmake-commits] CMake branch, next, updated. v2.8.7-2113-g744eac4

Rolf Eike Beer eike at sf-mail.de
Mon Jan 16 17:38:30 EST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  744eac4bae87f52a2861e5494bd3f12b2d225a6d (commit)
       via  ec631d5043faa1c307e6c6a29108664a47066e5d (commit)
      from  741e8ac34cd2502e30b092130bbfbb8096fee6f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=744eac4bae87f52a2861e5494bd3f12b2d225a6d
commit 744eac4bae87f52a2861e5494bd3f12b2d225a6d
Merge: 741e8ac ec631d5
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Mon Jan 16 17:38:29 2012 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Jan 16 17:38:29 2012 -0500

    Merge topic 'test_find_modules' into next
    
    ec631d5 add a test that loops through most Find* modules


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ec631d5043faa1c307e6c6a29108664a47066e5d
commit ec631d5043faa1c307e6c6a29108664a47066e5d
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Mon Jan 16 23:37:13 2012 +0100
Commit:     Rolf Eike Beer <eike at sf-mail.de>
CommitDate: Mon Jan 16 23:37:13 2012 +0100

    add a test that loops through most Find* modules
    
    This allows easy spotting of modules that output crappy messages and the
    like.

diff --git a/Tests/CMakeOnly/AllFindModules/CMakeLists.txt b/Tests/CMakeOnly/AllFindModules/CMakeLists.txt
new file mode 100644
index 0000000..e825a68
--- /dev/null
+++ b/Tests/CMakeOnly/AllFindModules/CMakeLists.txt
@@ -0,0 +1,25 @@
+cmake_minimum_required (VERSION 2.8)
+project(AllFindModules)
+
+if (POLICY CMP0017)
+  cmake_policy(SET CMP0017 NEW)
+endif ()
+
+file(GLOB FIND_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../Modules/Find*.cmake" )
+
+foreach(FIND_MODULE ${FIND_MODULES})
+    string(REGEX REPLACE ".*/Find(.*)\\.cmake$" "\\1" MODULE_NAME "${FIND_MODULE}")
+
+    # It is only possible to use either Qt3 or Qt4 in one project.
+    # Since FindQt will complain if both are found we explicitely
+    # filter out this and FindQt3. FindKDE3 also depends on Qt3 and
+    # is therefore also blocked
+
+    if (NOT MODULE_NAME STREQUAL "Qt" AND
+        NOT MODULE_NAME STREQUAL "Qt3" AND
+        NOT MODULE_NAME STREQUAL "KDE3")
+        message(STATUS "   Checking Find${MODULE_NAME}")
+        find_package(${MODULE_NAME})
+    endif ()
+
+endforeach(FIND_MODULE)
diff --git a/Tests/CMakeOnly/CMakeLists.txt b/Tests/CMakeOnly/CMakeLists.txt
index f6aa9b5..20e6a3a 100644
--- a/Tests/CMakeOnly/CMakeLists.txt
+++ b/Tests/CMakeOnly/CMakeLists.txt
@@ -14,3 +14,5 @@ set_property(TEST CMakeOnly.LinkInterfaceLoop PROPERTY TIMEOUT 90)
 add_CMakeOnly_test(CheckSymbolExists)
 
 add_CMakeOnly_test(CheckCXXSymbolExists)
+
+add_CMakeOnly_test(AllFindModules)

-----------------------------------------------------------------------

Summary of changes:
 Tests/CMakeOnly/AllFindModules/CMakeLists.txt |   25 +++++++++++++++++++++++++
 Tests/CMakeOnly/CMakeLists.txt                |    2 ++
 2 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 Tests/CMakeOnly/AllFindModules/CMakeLists.txt


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list