From 324f51cfc857939fcd7438f4ecb6d90abada5b61 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 14 Sep 2009 14:59:28 -0400 Subject: Fix for bug #8807, add support for CMAKE_EXE_LINKER_FLAGS_(config) to Xcode generator. --- Source/cmGlobalXCodeGenerator.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 0ca82e1..a9fcf06 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1509,6 +1509,15 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, { extraLinkOptions = this->CurrentMakefile->GetRequiredDefinition("CMAKE_EXE_LINKER_FLAGS"); + std::string var = "CMAKE_EXE_LINKER_FLAGS_"; + var += cmSystemTools::UpperCase(configName); + std::string val = + this->CurrentMakefile->GetSafeDefinition(var.c_str()); + if(val.size()) + { + extraLinkOptions += " "; + extraLinkOptions += val; + } } if(target.GetType() == cmTarget::SHARED_LIBRARY) { -- cgit v0.12