CMP0082.rst 1.1 KB

123456789101112131415161718192021222324252627282930
  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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.14
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn by default
  19. .. include:: STANDARD_ADVICE.txt
  20. See documentation of the
  21. :variable:`CMAKE_POLICY_WARNING_CMP0082 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
  22. variable to control the warning.
  23. .. include:: DEPRECATED.txt