install: Teach CODE,SCRIPT modes to evaluate generator expressions

This also introduces CMP0087 which will keep the OLD behaviour of not
evaluating generator expressions

Fixes: #15785
This commit is contained in:
Jon Chronopoulos
2018-11-29 21:11:07 +11:00
committed by Craig Scott
parent cb995ddea2
commit 25cae1e85d
16 changed files with 165 additions and 15 deletions

View File

@@ -547,6 +547,11 @@ example, the code
will print a message during installation.
``<file>`` or ``<code>`` may use "generator expressions" with the syntax
``$<...>`` (in the case of ``<file>``, this refers to their use in the file
name, not the file's contents). See the
:manual:`cmake-generator-expressions(7)` manual for available expressions.
Installing Exports
^^^^^^^^^^^^^^^^^^