summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-04-15 12:13:57 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-15 16:17:31 (GMT)
commitd67cc4882d54a18abbd5d01365ce1fc72d702a0e (patch)
treed609494ba1f13292a45d92630b47c4094ad2cc82 /Help
parent498b916cdd96330baa33bc10667b43cbb78674d4 (diff)
downloadCMake-d67cc4882d54a18abbd5d01365ce1fc72d702a0e.zip
CMake-d67cc4882d54a18abbd5d01365ce1fc72d702a0e.tar.gz
CMake-d67cc4882d54a18abbd5d01365ce1fc72d702a0e.tar.bz2
Xcode: Add support of DEPFILE for add_custom_command
Issue: #20286
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_custom_command.rst30
-rw-r--r--Help/release/dev/Xcode-add_custom_command-DEPFILE.rst5
2 files changed, 25 insertions, 10 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index b6ff0ea..c0ff81a 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -271,32 +271,42 @@ The options are:
``DEPFILE``
.. versionadded:: 3.7
- Specify a ``.d`` depfile for the :generator:`Ninja` generator and
- :ref:`Makefile Generators`. The depfile may use "generator expressions" with
- the syntax ``$<...>``. See the :manual:`generator-expressions(7)
- <cmake-generator-expressions(7)>` manual for available expressions.
- A ``.d`` file holds dependencies usually emitted by the custom
- command itself.
- Using ``DEPFILE`` with other generators than :generator:`Ninja` or
- :ref:`Makefile Generators` is an error.
+ Specify a ``.d`` depfile for the :generator:`Ninja`, :generator:`Xcode` and
+ :ref:`Makefile <Makefile Generators>` generators. The depfile may use
+ "generator expressions" with the syntax ``$<...>``. See the
+ :manual:`generator-expressions(7) <cmake-generator-expressions(7)>` manual
+ for available expressions. A ``.d`` file holds dependencies usually emitted
+ by the custom command itself.
+
+ Using ``DEPFILE`` with other generators than :generator:`Ninja`,
+ :generator:`Xcode` or :ref:`Makefile <Makefile Generators>` is an error.
.. versionadded:: 3.20
Added the support of :ref:`Makefile Generators`.
.. versionadded:: 3.21
- Added the support of :manual:`generator expressions <cmake-generator-expressions(7)>`.
+ Added the support of :generator:`Xcode` generator and
+ :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 Generators`).
+ :ref:`Makefile <Makefile Generators>` and :generator:`Xcode` generators).
.. note::
For :ref:`Makefile Generators`, this option cannot be specified at the
same time as ``IMPLICIT_DEPENDS`` option.
+ .. note::
+
+ For the :generator:`Xcode` generator, this option requires that the
+ :ref:`Xcode Build System Selection` uses the ``buildsystem=12`` variant
+ or higher. This is the default when using Xcode 12 or above.
+ The :variable:`CMAKE_XCODE_BUILD_SYSTEM` variable indicates which variant
+ of the Xcode build system is used.
+
Examples: Generating Files
^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/Help/release/dev/Xcode-add_custom_command-DEPFILE.rst b/Help/release/dev/Xcode-add_custom_command-DEPFILE.rst
new file mode 100644
index 0000000..4c4d48c
--- /dev/null
+++ b/Help/release/dev/Xcode-add_custom_command-DEPFILE.rst
@@ -0,0 +1,5 @@
+Xcode-add_custom_command-DEPFILE
+--------------------------------
+
+* The :command:`add_custom_command` command gained ``DEPFILE`` support on
+ :generator:`Xcode` generator.