summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-07-26 18:56:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-07-26 18:56:48 (GMT)
commit9ac8c938bbe9b63bc9ef0f883d2bc5cea42f6735 (patch)
treec3c4eaf4634b38b8b0519d5502cc3066543631b0
parent0cfd25681ca0e840f0198ff21f6910efcfe70125 (diff)
parent0ece8f79ed480152fa70ca7dea7b6625386a63e3 (diff)
downloadCMake-9ac8c938bbe9b63bc9ef0f883d2bc5cea42f6735.zip
CMake-9ac8c938bbe9b63bc9ef0f883d2bc5cea42f6735.tar.gz
CMake-9ac8c938bbe9b63bc9ef0f883d2bc5cea42f6735.tar.bz2
Merge topic 'doc-custom-command-multiple-targets-issue-12311'
0ece8f7 Document caveat of custom commands in multiple targets (#12311)
-rw-r--r--Source/cmAddCustomCommandCommand.h4
1 files changed, 4 insertions, 0 deletions
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. "