diff options
author | Brad King <brad.king@kitware.com> | 2009-11-06 13:04:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-06 13:04:19 (GMT) |
commit | 10762565e95b9cac08b7a0b643fdc5bf39bb2b96 (patch) | |
tree | 6108e17b545b2386e1222ccdcfbd66441153d9e6 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 723453d4aaa6eda01972076deebed89cee55fd39 (diff) | |
download | CMake-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.cxx | 10 |
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; |