Merge topic 'doc-custom-command-multiple-targets-issue-12311'

0ece8f7 Document caveat of custom commands in multiple targets (#12311)
This commit is contained in:
Brad King 2011-07-26 14:56:48 -04:00 committed by CMake Topic Stage
commit 9ac8c938bb
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ public:
"A target created in the same directory (CMakeLists.txt file) that " "A target created in the same directory (CMakeLists.txt file) that "
"specifies any output of the custom command as a source file is given " "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. " "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 " "If an output name is a relative path it will be interpreted "
"relative to the build tree directory corresponding to the current " "relative to the build tree directory corresponding to the current "
"source directory. " "source directory. "