[Cmake-commits] CMake branch, next, updated. v2.8.4-1844-g2cab5e1

Brad King brad.king at kitware.com
Thu Jun 30 08:45:46 EDT 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  2cab5e146886bbaf7f1d31ddc5b02b1ae0b604a3 (commit)
       via  0ece8f79ed480152fa70ca7dea7b6625386a63e3 (commit)
      from  1a0e63d75bf13ad26e007c443d774bb3f935b4e3 (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=2cab5e146886bbaf7f1d31ddc5b02b1ae0b604a3
commit 2cab5e146886bbaf7f1d31ddc5b02b1ae0b604a3
Merge: 1a0e63d 0ece8f7
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Jun 30 08:45:38 2011 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Jun 30 08:45:38 2011 -0400

    Merge topic 'doc-custom-command-multiple-targets-issue-12311' into next
    
    0ece8f7 Document caveat of custom commands in multiple targets (#12311)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0ece8f79ed480152fa70ca7dea7b6625386a63e3
commit 0ece8f79ed480152fa70ca7dea7b6625386a63e3
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Jun 30 08:38:00 2011 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Jun 30 08:43:32 2011 -0400

    Document caveat of custom commands in multiple targets (#12311)
    
    A common mistake when using custom commands is to list the output of a
    command in multiple targets that may build in parallel.  Warn against
    this case in the documentation and suggest a better approach.

diff --git a/Source/cmAddCustomCommandCommand.h b/Source/cmAddCustomCommandCommand.h
index 47b542c..05e7dc2 100644
--- a/Source/cmAddCustomCommandCommand.h
+++ b/Source/cmAddCustomCommandCommand.h
@@ -75,6 +75,10 @@ public:
       "A target created in the same directory (CMakeLists.txt file) that "
       "specifies any output of the custom command as a source file is given "
       "a rule to generate the file using the command at build time.  "
+      "Do not list the output in more than one independent target that may "
+      "build in parallel or the two instances of the rule may conflict "
+      "(instead use add_custom_target to drive the command and make the "
+      "other targets depend on that one).  "
       "If an output name is a relative path it will be interpreted "
       "relative to the build tree directory corresponding to the current "
       "source directory. "

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

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


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list