[Cmake-commits] CMake branch, next, updated. v2.8.3-1584-g0ff2896

David Cole david.cole at kitware.com
Mon Feb 7 17:19:43 EST 2011


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  0ff2896ef0938483619287a5ccaeaa9649c6cc24 (commit)
       via  2d14b15ec22a83ef78b0b9f1e5947f281e35d11a (commit)
      from  38216636c2106d909e4fb808b96829d679ec5877 (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=0ff2896ef0938483619287a5ccaeaa9649c6cc24
commit 0ff2896ef0938483619287a5ccaeaa9649c6cc24
Merge: 3821663 2d14b15
Author:     David Cole <david.cole at kitware.com>
AuthorDate: Mon Feb 7 17:19:39 2011 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Feb 7 17:19:39 2011 -0500

    Merge topic 'fix-8154-improve-list-documentation' into next
    
    2d14b15 Clarify list subcommand documentation (#8154)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2d14b15ec22a83ef78b0b9f1e5947f281e35d11a
commit 2d14b15ec22a83ef78b0b9f1e5947f281e35d11a
Author:     David Cole <david.cole at kitware.com>
AuthorDate: Mon Feb 7 16:55:07 2011 -0500
Commit:     David Cole <david.cole at kitware.com>
CommitDate: Mon Feb 7 16:55:07 2011 -0500

    Clarify list subcommand documentation (#8154)
    
    Make it clear that list subcommands that modify the list
    do so in the current CMake variable scope, regardless of
    the original scope of the list variable involved.

diff --git a/Source/cmListCommand.h b/Source/cmListCommand.h
index 7f229fa..d215295 100644
--- a/Source/cmListCommand.h
+++ b/Source/cmListCommand.h
@@ -83,6 +83,14 @@ public:
       "REMOVE_DUPLICATES will remove duplicated items in the list.\n"
       "REVERSE reverses the contents of the list in-place.\n"
       "SORT sorts the list in-place alphabetically.\n"
+      "The list subcommands APPEND, INSERT, REMOVE_AT, REMOVE_ITEM, "
+      "REMOVE_DUPLICATES, REVERSE and SORT may create new values for "
+      "the list within the current CMake variable scope. Similar to "
+      "the SET command, the LIST command creates new variable values "
+      "in the current scope, even if the list itself is actually "
+      "defined in a parent scope. To propagate the results of these "
+      "operations upwards, use SET with PARENT_SCOPE, SET with CACHE "
+      "INTERNAL, or some other means of value propagation.\n"
       "NOTES: A list in cmake is a ; separated group of strings. "
       "To create a list the set command can be used. For example, "
       "set(var a b c d e)  creates a list with a;b;c;d;e, and "

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

Summary of changes:
 Source/cmListCommand.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list