mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
ENH: Added IMPLICIT_DEPENDS option to ADD_CUSTOM_COMMAND. It currently works only for Makefile generators. It allows a custom command to have implicit dependencies in the form of C or CXX sources.
This commit is contained in:
@@ -71,6 +71,7 @@ public:
|
||||
" [COMMAND command2 [ARGS] [args2...] ...]\n"
|
||||
" [MAIN_DEPENDENCY depend]\n"
|
||||
" [DEPENDS [depends...]]\n"
|
||||
" [IMPLICIT_DEPENDS <lang1> depend1 ...]\n"
|
||||
" [WORKING_DIRECTORY dir]\n"
|
||||
" [COMMENT comment] [VERBATIM] [APPEND])\n"
|
||||
"This defines a new command that can be executed during the build "
|
||||
@@ -129,6 +130,15 @@ public:
|
||||
"created as a file on disk it should be marked as SYMBOLIC with "
|
||||
"SET_SOURCE_FILES_PROPERTIES.\n"
|
||||
|
||||
"The IMPLICIT_DEPENDS option requests scanning of implicit "
|
||||
"dependencies of an input file. The language given specifies the "
|
||||
"programming language whose corresponding dependency scanner should "
|
||||
"be used. Currently only C and CXX language scanners are supported. "
|
||||
"Dependencies discovered from the scanning are added to those of "
|
||||
"the custom command at build time. Note that the IMPLICIT_DEPENDS "
|
||||
"option is currently supported only for Makefile generators and "
|
||||
"will be ignored by other generators."
|
||||
"\n"
|
||||
"If COMMAND specifies an executable target (created by "
|
||||
"ADD_EXECUTABLE) it will automatically be replaced by the location "
|
||||
"of the executable created at build time. Additionally a "
|
||||
|
||||
Reference in New Issue
Block a user