[Cmake-commits] CMake branch, next, updated. v2.8.9-890-ga7e8060

Rolf Eike Beer eike at sf-mail.de
Sun Sep 30 08:15:47 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  a7e80609f2ff4e24e0a328928d1ff4046a88718a (commit)
       via  2a4793fc9b0a5bf1ad8906b024e07feddc8364fa (commit)
      from  03be3af02fa279f42b09d7aff073f7bdaa1fb8e6 (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=a7e80609f2ff4e24e0a328928d1ff4046a88718a
commit a7e80609f2ff4e24e0a328928d1ff4046a88718a
Merge: 03be3af 2a4793f
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Sun Sep 30 08:15:45 2012 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sun Sep 30 08:15:45 2012 -0400

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


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2a4793fc9b0a5bf1ad8906b024e07feddc8364fa
commit 2a4793fc9b0a5bf1ad8906b024e07feddc8364fa
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 14:15:34 2012 +0200

    list: add tests for CMP0007 behavior

diff --git a/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake b/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake
new file mode 100644
index 0000000..0a9264f
--- /dev/null
+++ b/Tests/CMakeTests/List-Get-CMP0007-Warn.cmake
@@ -0,0 +1,6 @@
+set(thelist "" NEW OLD)
+
+list(GET thelist 1 thevalue)
+if (NOT thevalue STREQUAL "OLD")
+    message(SEND_ERROR "returned element '${thevalue}', but expected 'OLD'")
+endif()
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in
index 09fa7b9..364ddaa 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 Warning \\(dev\\) 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:


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list