Fix for bug #8807, add support for CMAKE_EXE_LINKER_FLAGS_(config) to Xcode generator.

This commit is contained in:
Bill Hoffman 2009-09-14 14:59:28 -04:00
parent c83591e818
commit 324f51cfc8

View File

@ -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)
{