CMP0082.rst 1.1 KB

1234567891011121314151617181920212223242526
  1. CMP0082
  2. -------
  3. Install rules from :command:`add_subdirectory` calls are interleaved with
  4. those in caller.
  5. CMake 3.13 and lower ran the install rules from :command:`add_subdirectory`
  6. after all other install rules, even if :command:`add_subdirectory` was called
  7. before the other install rules. CMake 3.14 and above prefer to interleave
  8. these :command:`add_subdirectory` install rules with the others so that
  9. they are run in the order they are declared. This policy provides
  10. compatibility for projects that have not been updated to expect the
  11. new behavior.
  12. The ``OLD`` behavior for this policy is to run the install rules from
  13. :command:`add_subdirectory` after the other install rules. The ``NEW``
  14. behavior for this policy is to run all install rules in the order they are
  15. declared.
  16. This policy was introduced in CMake version 3.14. Unlike most policies,
  17. CMake version |release| does *not* warn by default when this policy
  18. is not set and simply uses ``OLD`` behavior. See documentation of the
  19. :variable:`CMAKE_POLICY_WARNING_CMP0082 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
  20. variable to control the warning.
  21. .. include:: DEPRECATED.txt