mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'install-subdirectory-order'
b56f2db87aTesting: Add test for CMP0082fc8955e889add_subdirectory: Run subdirectory install rules in correct order514f0b572eTesting: Update hard-coded line numbers to [0-9]+ in some tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2434
This commit is contained in:
@@ -51,6 +51,14 @@ The :variable:`CMAKE_MINIMUM_REQUIRED_VERSION` variable may also be used
|
||||
to determine whether to report an error on use of deprecated macros or
|
||||
functions.
|
||||
|
||||
Policies Introduced by CMake 3.14
|
||||
=================================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
CMP0082: Install rules from add_subdirectory() are interleaved with those in caller. </policy/CMP0082>
|
||||
|
||||
Policies Introduced by CMake 3.13
|
||||
=================================
|
||||
|
||||
|
||||
24
Help/policy/CMP0082.rst
Normal file
24
Help/policy/CMP0082.rst
Normal file
@@ -0,0 +1,24 @@
|
||||
CMP0082
|
||||
-------
|
||||
|
||||
Install rules from :command:`add_subdirectory` calls are interleaved with
|
||||
those in caller.
|
||||
|
||||
CMake 3.13 and lower ran the install rules from :command:`add_subdirectory`
|
||||
after all other install rules, even if :command:`add_subdirectory` was called
|
||||
before the other install rules. CMake 3.14 and later interleaves these
|
||||
:command:`add_subdirectory` install rules with the others so that they are
|
||||
run in the order they are declared.
|
||||
|
||||
The ``OLD`` behavior for this policy is to run the install rules from
|
||||
:command:`add_subdirectory` after the other install rules. The ``NEW``
|
||||
behavior for this policy is to run all install rules in the order they are
|
||||
declared.
|
||||
|
||||
This policy was introduced in CMake version 3.14. Unlike most policies,
|
||||
CMake version |release| does *not* warn by default when this policy
|
||||
is not set and simply uses OLD behavior. See documentation of the
|
||||
:variable:`CMAKE_POLICY_WARNING_CMP0082 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
|
||||
variable to control the warning.
|
||||
|
||||
.. include:: DEPRECATED.txt
|
||||
5
Help/release/dev/install-subdirectory-order.rst
Normal file
5
Help/release/dev/install-subdirectory-order.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
install-subdirectory-order
|
||||
--------------------------
|
||||
|
||||
* Install rules under :command:`add_subdirectory` now interleave with those in
|
||||
the calling directory. See policy :policy:`CMP0082` for details.
|
||||
@@ -19,6 +19,8 @@ warn by default:
|
||||
policy :policy:`CMP0066`.
|
||||
* ``CMAKE_POLICY_WARNING_CMP0067`` controls the warning for
|
||||
policy :policy:`CMP0067`.
|
||||
* ``CMAKE_POLICY_WARNING_CMP0082`` controls the warning for
|
||||
policy :policy:`CMP0082`.
|
||||
|
||||
This variable should not be set by a project in CMake code. Project
|
||||
developers running CMake may set this variable in their cache to
|
||||
|
||||
Reference in New Issue
Block a user