summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-08 16:45:20 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-09 14:09:58 (GMT)
commit526e2ef71c5b797818bbf232e21d0152a3938197 (patch)
treecbf166ad88496f7d0b070e7bc1f38bba073f4356 /Help
parent794ad78abb8da517e59e25ea38f5c1edced1cf46 (diff)
downloadCMake-526e2ef71c5b797818bbf232e21d0152a3938197.zip
CMake-526e2ef71c5b797818bbf232e21d0152a3938197.tar.gz
CMake-526e2ef71c5b797818bbf232e21d0152a3938197.tar.bz2
VS: Add support for add_custom_command DEPFILE
Transform the depfile into MSBuild `AdditionalInputs` content. Add MSBuild Targets to update `AdditionalInputs` and the `.tlog` files for future builds without actually modifying the `.vcxproj` file. Fixes: #20286
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_custom_command.rst8
-rw-r--r--Help/release/dev/add_custom_command-DEPFILE.rst3
2 files changed, 7 insertions, 4 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index a053e59..d881a66 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -282,17 +282,19 @@ The options are:
:generator:`Xcode` or :ref:`Makefile <Makefile Generators>` is an error.
.. versionadded:: 3.20
- Added the support of :ref:`Makefile Generators`.
+ Added support for :ref:`Makefile Generators`.
.. versionadded:: 3.21
- Added the support of :generator:`Xcode` generator and
+ Added support for :ref:`Visual Studio Generators` with VS 2012 and above,
+ for the :generator:`Xcode` generator, and for
:manual:`generator expressions <cmake-generator-expressions(7)>`.
If the ``DEPFILE`` argument is relative, it should be relative to
:variable:`CMAKE_CURRENT_BINARY_DIR`, and any relative paths inside the
``DEPFILE`` should also be relative to :variable:`CMAKE_CURRENT_BINARY_DIR`
(see policy :policy:`CMP0116`. This policy is always ``NEW`` for
- :ref:`Makefile <Makefile Generators>` and :generator:`Xcode` generators).
+ :ref:`Makefile Generators`, :ref:`Visual Studio Generators`,
+ and the :generator:`Xcode` generator).
.. note::
diff --git a/Help/release/dev/add_custom_command-DEPFILE.rst b/Help/release/dev/add_custom_command-DEPFILE.rst
index 6361a66..893c374 100644
--- a/Help/release/dev/add_custom_command-DEPFILE.rst
+++ b/Help/release/dev/add_custom_command-DEPFILE.rst
@@ -2,4 +2,5 @@ add_custom_command-DEPFILE
--------------------------
* The :command:`add_custom_command` command gained ``DEPFILE`` support on
- the :generator:`Xcode` generator.
+ the :generator:`Xcode` generator, and on :ref:`Visual Studio Generators`
+ for VS 2012 and above.