diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-27 08:43:44 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-01-27 08:59:26 (GMT) |
commit | 34d1ade048a87953c089d730f0126eecb6685968 (patch) | |
tree | f9d3ac9c7f5829ef8e1d881f8ab80583243f9644 /Source/cmGeneratorExpressionEvaluator.cxx | |
parent | 3a1719793fa4eb4024e2e36e17196832551d469c (diff) | |
download | CMake-34d1ade048a87953c089d730f0126eecb6685968.zip CMake-34d1ade048a87953c089d730f0126eecb6685968.tar.gz CMake-34d1ade048a87953c089d730f0126eecb6685968.tar.bz2 |
Add the INSTALL_PREFIX genex.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index 0c61a12..f74b69e 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -615,6 +615,24 @@ static const struct TargetPolicyNode : public cmGeneratorExpressionNode } targetPolicyNode; //---------------------------------------------------------------------------- +static const struct InstallPrefixNode : public cmGeneratorExpressionNode +{ + InstallPrefixNode() {} + + virtual bool GeneratesContent() const { return false; } + virtual int NumExpectedParameters() const { return 0; } + + std::string Evaluate(const std::vector<std::string> &, + cmGeneratorExpressionContext *, + const GeneratorExpressionContent *, + cmGeneratorExpressionDAGChecker *) const + { + return std::string(); + } + +} installPrefixNode; + +//---------------------------------------------------------------------------- template<bool linker, bool soname> struct TargetFilesystemArtifactResultCreator { @@ -849,6 +867,8 @@ cmGeneratorExpressionNode* GetNode(const std::string &identifier) return &installInterfaceNode; else if (identifier == "TARGET_DEFINED") return &targetDefinedNode; + else if (identifier == "INSTALL_PREFIX") + return &installPrefixNode; return 0; } |