summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallScriptGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-11 10:59:38 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-11 11:05:55 (GMT)
commit0f48fbaa72fa254faaed6b586fcaa5d3c5c77798 (patch)
tree38520add1b903a77bdd51af9789c3cab9c869148 /Source/cmInstallScriptGenerator.h
parentfd02538974dd952a8639d371c2c0067d30d5469a (diff)
downloadCMake-0f48fbaa72fa254faaed6b586fcaa5d3c5c77798.zip
CMake-0f48fbaa72fa254faaed6b586fcaa5d3c5c77798.tar.gz
CMake-0f48fbaa72fa254faaed6b586fcaa5d3c5c77798.tar.bz2
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
Diffstat (limited to 'Source/cmInstallScriptGenerator.h')
-rw-r--r--Source/cmInstallScriptGenerator.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/cmInstallScriptGenerator.h b/Source/cmInstallScriptGenerator.h
index 534bc1d..fe0f7c6 100644
--- a/Source/cmInstallScriptGenerator.h
+++ b/Source/cmInstallScriptGenerator.h
@@ -6,13 +6,10 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include "cmInstallGenerator.h"
-#include "cmScriptGenerator.h"
#include <iosfwd>
#include <string>
-class cmLocalGenerator;
-
/** \class cmInstallScriptGenerator
* \brief Generate target installation rules.
*/
@@ -23,18 +20,10 @@ public:
const char* component, bool exclude_from_all);
~cmInstallScriptGenerator() override;
- void Compute(cmLocalGenerator* lg) override;
-
protected:
- void GenerateScriptActions(std::ostream& os, Indent indent) override;
- void GenerateScriptForConfig(std::ostream& os, const std::string& config,
- Indent indent) override;
- void AddScriptInstallRule(std::ostream& os, Indent indent,
- std::string const& script);
-
+ void GenerateScript(std::ostream& os) override;
std::string Script;
bool Code;
- cmLocalGenerator* LocalGenerator;
};
#endif