[Cmake-commits] CMake branch, next, updated. v2.8.9-886-gf880a3c

Rolf Eike Beer eike at sf-mail.de
Sun Sep 30 06:21:39 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  f880a3c7f9e13b8f47bb92f262ea4b0d805b9f15 (commit)
       via  49bd94a4d3f4f6325639d96c29acb848df9cbc0f (commit)
      from  e92cb29030781d8b9b261c71e5d39fe310c4aa16 (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=f880a3c7f9e13b8f47bb92f262ea4b0d805b9f15
commit f880a3c7f9e13b8f47bb92f262ea4b0d805b9f15
Merge: e92cb29 49bd94a
Author:     Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Sun Sep 30 06:21:38 2012 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sun Sep 30 06:21:38 2012 -0400

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


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=49bd94a4d3f4f6325639d96c29acb848df9cbc0f
commit 49bd94a4d3f4f6325639d96c29acb848df9cbc0f
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 12:21:23 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..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:


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list