Implement LINK_FLAGS_<CONFIG> property on Xcode

See issue #9841.
This commit is contained in:
Brad King 2009-11-06 08:04:19 -05:00
parent 723453d4aa
commit 10762565e9
1 changed files with 10 additions and 0 deletions

View File

@ -1521,6 +1521,16 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
extraLinkOptions += " ";
extraLinkOptions += targetLinkFlags;
}
if(configName && *configName)
{
std::string linkFlagsVar = "LINK_FLAGS_";
linkFlagsVar += cmSystemTools::UpperCase(configName);
if(const char* linkFlags = target.GetProperty(linkFlagsVar.c_str()))
{
extraLinkOptions += " ";
extraLinkOptions += linkFlags;
}
}
// Set target-specific architectures.
std::vector<std::string> archs;