summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-14 14:30:22 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-14 14:56:45 (GMT)
commitfc223f986066496654b4f2e392a40264c95cbd68 (patch)
treeb4227e898e2895dbd95d5605b6cd26feaace0d55
parent734238d64f292af9d3f68742c18b0ac96b78ac06 (diff)
downloadCMake-fc223f986066496654b4f2e392a40264c95cbd68.zip
CMake-fc223f986066496654b4f2e392a40264c95cbd68.tar.gz
CMake-fc223f986066496654b4f2e392a40264c95cbd68.tar.bz2
cmGlobalXCodeGenerator: Fix genex interpreter overloads
Overload both signatures to add Xcode-specific functionality. Co-Author: Vitaly Stakhovsky <vvs31415@gitlab.org>
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index bdc03c7..2191bc7 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -770,11 +770,15 @@ public:
XCodeGeneratorExpressionInterpreter& operator=(
XCodeGeneratorExpressionInterpreter const&) = delete;
- using cmGeneratorExpressionInterpreter::Evaluate;
-
const std::string& Evaluate(const char* expression,
const std::string& property)
{
+ return this->Evaluate(std::string(expression ? expression : ""), property);
+ }
+
+ const std::string& Evaluate(const std::string& expression,
+ const std::string& property)
+ {
const std::string& processed =
this->cmGeneratorExpressionInterpreter::Evaluate(expression, property);
if (this->CompiledGeneratorExpression->GetHadContextSensitiveCondition()) {