summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{