summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-14 18:59:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-14 18:59:28 (GMT)
commit324f51cfc857939fcd7438f4ecb6d90abada5b61 (patch)
treec0f317ce8fc81a0e39db9119d3c96e3d07e3c75d /Source
parentc83591e81876505396a6a46cee39e32d5d289f4c (diff)
downloadCMake-324f51cfc857939fcd7438f4ecb6d90abada5b61.zip
CMake-324f51cfc857939fcd7438f4ecb6d90abada5b61.tar.gz
CMake-324f51cfc857939fcd7438f4ecb6d90abada5b61.tar.bz2
Fix for bug #8807, add support for CMAKE_EXE_LINKER_FLAGS_(config) to Xcode generator.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
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)
{