diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-03 16:57:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-03 16:57:51 (GMT) |
commit | 3c8e899102dc58efa5301240f5bf5bf2225c2b65 (patch) | |
tree | ea7b3aa1cf42176e6719ffe9506ec76e4dcd1c9d /Source/cmLocalGenerator.cxx | |
parent | 32b63ef915eadc1d5e48c63e09ca1a65e0f0ca52 (diff) | |
download | CMake-3c8e899102dc58efa5301240f5bf5bf2225c2b65.zip CMake-3c8e899102dc58efa5301240f5bf5bf2225c2b65.tar.gz CMake-3c8e899102dc58efa5301240f5bf5bf2225c2b65.tar.bz2 |
ENH: add support for per config target LINK_FLAGS
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index af82c45..748bfe5 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1045,6 +1045,14 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs, { linkFlags += targetLinkFlags; linkFlags += " "; + std::string configLinkFlags = targetLinkFlags; + configLinkFlags += buildType; + targetLinkFlags = target.GetProperty(configLinkFlags.c_str()); + if(targetLinkFlags) + { + linkFlags += targetLinkFlags; + linkFlags += " "; + } } cmOStringStream linklibsStr; this->OutputLinkLibraries(linklibsStr, target, false); @@ -1103,7 +1111,15 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs, if(targetLinkFlags) { linkFlags += targetLinkFlags; - linkFlags += " "; + linkFlags += " "; + std::string configLinkFlags = targetLinkFlags; + configLinkFlags += buildType; + targetLinkFlags = target.GetProperty(configLinkFlags.c_str()); + if(targetLinkFlags) + { + linkFlags += targetLinkFlags; + linkFlags += " "; + } } } break; |