CMP0082.rst 1.1 KB

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