Merge topic 'deprecate-cmake-cfg-intdir'

e71c4f7729 CMAKE_CFG_INTDIR: Formally deprecate in favor of $<CONFIG>

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6163
This commit is contained in:
Brad King
2021-05-28 16:20:25 +00:00
committed by Kitware Robot

View File

@@ -1,6 +1,12 @@
CMAKE_CFG_INTDIR
----------------
.. deprecated:: 3.21
This variable has poor support on :generator:`Ninja Multi-Config`, and
predates the existence of the :genex:`$<CONFIG>` generator expression. Use
``$<CONFIG>`` instead.
Build-time reference to per-configuration output subdirectory.
For native build systems supporting multiple configurations in the
@@ -19,11 +25,6 @@ Example values:
. = Ninja
${CONFIGURATION} = Ninja Multi-Config
Note that this variable only has limited support on
:generator:`Ninja Multi-Config`. It is recommended that you use the
``$<CONFIG>`` :manual:`generator expression <cmake-generator-expressions(7)>`
instead.
Since these values are evaluated by the native build system, this
variable is suitable only for use in command lines that will be
evaluated at build time. Example of intended usage: