Browse Source

cmGlobalXCodeGenerator: Fix genex interpreter overloads

Overload both signatures to add Xcode-specific functionality.

Co-Author: Vitaly Stakhovsky <[email protected]>
Brad King 5 years ago
parent
commit
fc223f9860
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Source/cmGlobalXCodeGenerator.cxx

+ 6 - 2
Source/cmGlobalXCodeGenerator.cxx

@@ -770,10 +770,14 @@ 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);