[Cmake-commits] CMake branch, next, updated. v2.8.9-882-g789d2f3

Rolf Eike Beer eike at sf-mail.de
Sun Sep 30 05:18:12 EDT 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  789d2f35e207630120dc4d934a47beea89362306 (commit)
       via  b66850fd71c81b4813e1fb47a5261a8873a3738e (commit)
      from  e38ce9ed0f40a96125c7c07e73984f3ddbf51da7 (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=789d2f35e207630120dc4d934a47beea89362306
commit 789d2f35e207630120dc4d934a47beea89362306
Merge: e38ce9e b66850f
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Sun Sep 30 05:18:09 2012 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sun Sep 30 05:18:09 2012 -0400

    Merge topic 'start-contributing-irc-session' into next
    
    b66850f list: add tests for CMP0007 behavior


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b66850fd71c81b4813e1fb47a5261a8873a3738e
commit b66850fd71c81b4813e1fb47a5261a8873a3738e
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Sun Sep 30 10:44:18 2012 +0200
Commit:     Rolf Eike Beer <eike at sf-mail.de>
CommitDate: Sun Sep 30 10:44:18 2012 +0200

    list: add tests for CMP0007 behavior

diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in
index 09fa7b9..2e546a4 100644
--- a/Tests/CMakeTests/ListTest.cmake.in
+++ b/Tests/CMakeTests/ListTest.cmake.in
@@ -147,6 +147,9 @@ foreach(cmd Remove_Item Reverse Remove_Duplicates Sort Remove_At)
   set(${cmd}-Nonexistent-List-STDERR ".*CMake Error at (@CMAKE_CURRENT_SOURCE_DIR@/)?List-${cmd}-Nonexistent-List.cmake:2 \\(list\\):.*sub-command ${Cmd} requires list to be present.*")
 endforeach()
 
+set(Get-CMP0007-Warn-RESULT 0)
+set(Get-CMP0007-Warn-STDERR ".*CMake Error at (@CMAKE_CURRENT_SOURCE_DIR@/)?List-Get-CMP0007-Warn.cmake:3 \\(list\\):.*Policy CMP0007 is not set:.*")
+
 include("@CMAKE_CURRENT_SOURCE_DIR@/CheckCMakeTest.cmake")
 check_cmake_test(List
   No-Arguments
@@ -172,4 +175,15 @@ check_cmake_test(List
   Sort-Nonexistent-List
   Remove_At-Nonexistent-List
   Remove_At-Invalid-Index
+  Get-CMP0007-Warn
 )
+
+set(thelist "" NEW OLD)
+
+foreach (_pol ${thelist})
+    cmake_policy(SET CMP0007 ${_pol})
+    list(GET thelist 1 thevalue)
+    if (NOT thevalue STREQUAL _pol)
+        message(SEND_ERROR "returned element '${thevalue}', but expected '${_pol}'")
+    endif()
+endforeach (_pol)

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

Summary of changes:
 Tests/CMakeTests/ListTest.cmake.in |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list