From 10762565e95b9cac08b7a0b643fdc5bf39bb2b96 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 6 Nov 2009 08:04:19 -0500 Subject: Implement LINK_FLAGS_ property on Xcode See issue #9841. --- Source/cmGlobalXCodeGenerator.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 archs; -- cgit v0.12