diff options
author | Brad King <brad.king@kitware.com> | 2016-08-30 13:29:40 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-30 13:29:40 (GMT) |
commit | 918cb5b1f095cc05a8823fa218a59edf0e536384 (patch) | |
tree | 0c236ea635af778077a004e14e3bb2dd0a53adc7 /Help | |
parent | 57d121fbb1f2e9e2ac0622dd4049dedc3968d894 (diff) | |
parent | 048d1adb4ede50e49dce00873a5961e424e149f9 (diff) | |
download | CMake-918cb5b1f095cc05a8823fa218a59edf0e536384.zip CMake-918cb5b1f095cc05a8823fa218a59edf0e536384.tar.gz CMake-918cb5b1f095cc05a8823fa218a59edf0e536384.tar.bz2 |
Merge topic 'ninja-add_custom_command-depfile'
048d1adb add_custom_command: Add DEPFILE option for Ninja
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_custom_command.rst | 7 | ||||
-rw-r--r-- | Help/release/dev/ninja-add_custom_command-depfile.rst | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst index d421364..4ab4298 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -20,6 +20,7 @@ The first signature is for adding a custom command to produce an output:: [<lang2> depend2] ...] [WORKING_DIRECTORY dir] [COMMENT comment] + [DEPFILE depfile] [VERBATIM] [APPEND] [USES_TERMINAL]) This defines a command to generate specified ``OUTPUT`` file(s). @@ -170,6 +171,12 @@ The options are: If it is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. +``DEPFILE`` + Specify a ``.d`` depfile for the :generator:`Ninja` generator. + A ``.d`` file holds dependencies usually emitted by the custom + command itself. + Using ``DEPFILE`` with other generators than Ninja is an error. + Build Events ^^^^^^^^^^^^ diff --git a/Help/release/dev/ninja-add_custom_command-depfile.rst b/Help/release/dev/ninja-add_custom_command-depfile.rst new file mode 100644 index 0000000..c8099fe --- /dev/null +++ b/Help/release/dev/ninja-add_custom_command-depfile.rst @@ -0,0 +1,6 @@ +ninja-add_custom_command-depfile +-------------------------------- + +* The :command:`add_custom_command` command gained a new ``DEPFILE`` + option that works with the :generator:`Ninja` generator to provide + implicit dependency information to the build tool. |