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