[Cmake-commits] CMake branch, next, updated. v2.8.1-1360-g6c48484

Brad King brad.king at kitware.com
Wed Jun 9 13:21:14 EDT 2010


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  6c4848494ab17207a73c94aa1b87e0bff92e2761 (commit)
       via  beabb3319e84158bdf15bf4a141726a635118835 (commit)
       via  86de1d6504737510e2107aa0323ec761d666bfaa (commit)
      from  ecd7a9f9a76d8d701606f7720e459e178079f195 (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=6c4848494ab17207a73c94aa1b87e0bff92e2761
commit 6c4848494ab17207a73c94aa1b87e0bff92e2761
Merge: ecd7a9f beabb33
Author: Brad King <brad.king at kitware.com>
Date:   Wed Jun 9 13:19:51 2010 -0400

    Merge branch 'source-file-property-documentation' into next


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=beabb3319e84158bdf15bf4a141726a635118835
commit beabb3319e84158bdf15bf4a141726a635118835
Author: Brad King <brad.king at kitware.com>
Date:   Wed Jun 9 13:18:42 2010 -0400

    Document scope of source file properties
    
    Also remove out-dated list of source file properties from the
    set_source_files_properties command.

diff --git a/Source/cmSetPropertyCommand.h b/Source/cmSetPropertyCommand.h
index 853e7ba..c477bb7 100644
--- a/Source/cmSetPropertyCommand.h
+++ b/Source/cmSetPropertyCommand.h
@@ -66,7 +66,9 @@ public:
         "directory (already processed by CMake) may be named by full or "
         "relative path.\n"
         "TARGET scope may name zero or more existing targets.\n"
-        "SOURCE scope may name zero or more source files.\n"
+        "SOURCE scope may name zero or more source files.  "
+        "Note that source file properties are visible only to targets "
+        "added in the same directory (CMakeLists.txt).\n"
         "TEST scope may name zero or more existing tests.\n"
         "CACHE scope must name zero or more cache existing entries.\n"
         "The required PROPERTY option is immediately followed by the name "
diff --git a/Source/cmSetSourceFilesPropertiesCommand.h b/Source/cmSetSourceFilesPropertiesCommand.h
index 7182152..392f168 100644
--- a/Source/cmSetSourceFilesPropertiesCommand.h
+++ b/Source/cmSetSourceFilesPropertiesCommand.h
@@ -48,35 +48,15 @@ public:
   virtual const char* GetFullDocumentation()
     {
       return
-        "  set_source_files_properties(file1 file2 ...\n"
+        "  set_source_files_properties([file1 [file2 [...]]]\n"
         "                              PROPERTIES prop1 value1\n"
-        "                              prop2 value2 ...)\n"
-        "Set properties on a file. The syntax for the command is to list all "
-        "the files you want "
-        "to change, and then provide the values you want to set next.  You "
-        "can make up your own properties as well.  "
-        "The following are used by CMake.  "
-        "The ABSTRACT flag (boolean) is used by some class wrapping "
-        "commands. "
-        "If WRAP_EXCLUDE (boolean) is true then many wrapping commands "
-        "will ignore this file. If GENERATED (boolean) is true then it "
-        "is not an error if this source file does not exist when it is "
-        "added to a target.  Obviously, "
-        "it must be created (presumably by a custom command) before the "
-        "target is built.  "
-        "If the HEADER_FILE_ONLY (boolean) property is true then the "
-        "file is not compiled.  This is useful if you want to add extra "
-        "non build files to an IDE. "
-        "OBJECT_DEPENDS (string) adds dependencies to the object file.  "
-        "COMPILE_FLAGS (string) is passed to the compiler as additional "
-        "command line arguments when the source file is compiled.  "
-        "LANGUAGE (string) CXX|C will change the default compiler used "
-        "to compile the source file. The languages used need to be enabled " 
-        "in the PROJECT command. "
-        "If SYMBOLIC (boolean) is set to true the build system will be "
-        "informed that the source file is not actually created on disk but "
-        "instead used as a symbolic name for a build rule.";
-      
+        "                              [prop2 value2 [...]])\n"
+        "Set properties associated with source files using a key/value "
+        "paired list.  "
+        "See properties documentation for those known to CMake.  "
+        "Unrecognized properties are ignored.  "
+        "Source file properties are visible only to targets "
+        "added in the same directory (CMakeLists.txt).";
     }
   
   cmTypeMacro(cmSetSourceFilesPropertiesCommand, cmCommand);

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

Summary of changes:
 Source/cmSetPropertyCommand.h              |    4 ++-
 Source/cmSetSourceFilesPropertiesCommand.h |   36 ++++++---------------------
 Source/kwsys/kwsysDateStamp.cmake          |    2 +-
 3 files changed, 12 insertions(+), 30 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list