[Cmake-commits] [cmake-commits] king committed cmAddCustomCommandCommand.h 1.35 1.36 cmAddCustomTargetCommand.h 1.23 1.24

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Mar 30 08:27:33 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv13427/Source

Modified Files:
	cmAddCustomCommandCommand.h cmAddCustomTargetCommand.h 
Log Message:
ENH: Document scope of add_custom_command outputs

This explicitly states the scope of add_custom_command rules in
the documentation of add_custom_command and add_custom_target.
See issue #8815.


Index: cmAddCustomTargetCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmAddCustomTargetCommand.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -C 2 -d -r1.23 -r1.24
*** cmAddCustomTargetCommand.h	9 Oct 2008 15:01:23 -0000	1.23
--- cmAddCustomTargetCommand.h	30 Mar 2009 12:27:28 -0000	1.24
***************
*** 88,92 ****
        "message before the commands are executed at build time. "
        "Dependencies listed with the DEPENDS argument may reference files "
!       "and outputs of custom commands created with ADD_CUSTOM_COMMAND.\n"
        "If VERBATIM is given then all the arguments to the commands will be "
        "passed exactly as specified no matter the build tool used. "
--- 88,93 ----
        "message before the commands are executed at build time. "
        "Dependencies listed with the DEPENDS argument may reference files "
!       "and outputs of custom commands created with add_custom_command() in "
!       "the same directory (CMakeLists.txt file).\n"
        "If VERBATIM is given then all the arguments to the commands will be "
        "passed exactly as specified no matter the build tool used. "

Index: cmAddCustomCommandCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmAddCustomCommandCommand.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -C 2 -d -r1.35 -r1.36
*** cmAddCustomCommandCommand.h	2 Jun 2008 20:45:06 -0000	1.35
--- cmAddCustomCommandCommand.h	30 Mar 2009 12:27:25 -0000	1.36
***************
*** 76,82 ****
        "                     [WORKING_DIRECTORY dir]\n"
        "                     [COMMENT comment] [VERBATIM] [APPEND])\n"
!       "This defines a new command that can be executed during the build "
!       "process. The outputs named should be listed as source files in the "
!       "target for which they are to be generated. "
        "If an output name is a relative path it will be interpreted "
        "relative to the build tree directory corresponding to the current "
--- 76,83 ----
        "                     [WORKING_DIRECTORY dir]\n"
        "                     [COMMENT comment] [VERBATIM] [APPEND])\n"
!       "This defines a command to generate specified OUTPUT file(s).  "
!       "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.  "
        "If an output name is a relative path it will be interpreted "
        "relative to the build tree directory corresponding to the current "
***************
*** 152,155 ****
--- 153,160 ----
        "custom command to re-run whenever the executable is recompiled.\n"
  
+       "The DEPENDS option specifies files on which the command depends.  "
+       "If any dependency is an OUTPUT of another custom command in the "
+       "same directory (CMakeLists.txt file) CMake automatically brings the "
+       "other custom command into the target in which this command is built.  "
        "If DEPENDS specifies any target (created by an ADD_* command) "
        "a target-level dependency is created to make sure the target is "



More information about the Cmake-commits mailing list