install: Revert CODE,SCRIPT support for generator expressions

Revert commit v3.13.0-rc1~441^2 (install: Teach CODE,SCRIPT modes to
evaluate generator expressions, 2018-05-29).  Unfortunately it has
been found to break existing code in a real project, e.g.

    install(CODE [[
        message("$<FOOBAR>")
    ]])

Address this regression by reverting support for the 3.13 release
series.  Support can be restored later with a policy for compatibility.

Issue: #15785
Fixes: #18435
This commit is contained in:
Brad King
2018-10-11 06:59:38 -04:00
parent fd02538974
commit 0f48fbaa72
10 changed files with 9 additions and 70 deletions

View File

@@ -442,10 +442,6 @@ example, the code
will print a message during installation.
The contents of ``SCRIPT`` or ``CODE`` may use "generator expressions" with
the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
manual for available expressions.
Installing Exports
^^^^^^^^^^^^^^^^^^