CMP0087.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. CMP0087
  2. -------
  3. .. versionadded:: 3.14
  4. :command:`install(CODE)` and :command:`install(SCRIPT)` support generator
  5. expressions.
  6. In CMake 3.13 and earlier, :command:`install(CODE)` and
  7. :command:`install(SCRIPT)` did not evaluate generator expressions. CMake 3.14
  8. and later will evaluate generator expressions for :command:`install(CODE)` and
  9. :command:`install(SCRIPT)`.
  10. The ``OLD`` behavior of this policy is for :command:`install(CODE)` and
  11. :command:`install(SCRIPT)` to not evaluate generator expressions. The ``NEW``
  12. behavior is to evaluate generator expressions for :command:`install(CODE)` and
  13. :command:`install(SCRIPT)`.
  14. Note that it is the value of this policy setting at the end of the directory
  15. scope that is important, not its setting at the time of the call to
  16. :command:`install(CODE)` or :command:`install(SCRIPT)`. This has implications
  17. for calling these commands from places that have their own policy scope but not
  18. their own directory scope (e.g. from files brought in via :command:`include()`
  19. rather than :command:`add_subdirectory()`).
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.14
  21. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  22. .. include:: STANDARD_ADVICE.txt
  23. .. include:: DEPRECATED.txt