[cmake-developers] [PATCH] Add support for Generator Expressions within XCODE_ATTRIBUTE target properties

Gregor Jasny gjasny at googlemail.com
Wed Jan 28 14:14:09 EST 2015


Signed-off-by: Gregor Jasny <gjasny at googlemail.com>
---
 Source/cmGlobalXCodeGenerator.cxx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index e7a6141..25668e8 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2394,8 +2394,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
 
       if (!attribute.empty())
         {
+        cmListFileBacktrace backtrace = this->CurrentMakefile->GetBacktrace();
+        cmGeneratorExpression ge(&backtrace);
+        std::string processed = ge.Parse(i->second.GetValue())->Evaluate(this->CurrentMakefile, configName);
         buildSettings->AddAttribute(attribute.c_str(),
-                                    this->CreateString(i->second.GetValue()));
+                                    this->CreateString(processed));
         }
       }
     }
-- 
1.9.3 (Apple Git-50)



More information about the cmake-developers mailing list