summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-06 13:04:19 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-06 13:04:19 (GMT)
commit10762565e95b9cac08b7a0b643fdc5bf39bb2b96 (patch)
tree6108e17b545b2386e1222ccdcfbd66441153d9e6 /Source/cmGlobalXCodeGenerator.cxx
parent723453d4aaa6eda01972076deebed89cee55fd39 (diff)
downloadCMake-10762565e95b9cac08b7a0b643fdc5bf39bb2b96.zip
CMake-10762565e95b9cac08b7a0b643fdc5bf39bb2b96.tar.gz
CMake-10762565e95b9cac08b7a0b643fdc5bf39bb2b96.tar.bz2
Implement LINK_FLAGS_<CONFIG> property on Xcode
See issue #9841.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 571932f..a409e5f 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -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;