summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-03 16:57:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-03 16:57:51 (GMT)
commit3c8e899102dc58efa5301240f5bf5bf2225c2b65 (patch)
treeea7b3aa1cf42176e6719ffe9506ec76e4dcd1c9d /Source/cmLocalVisualStudio7Generator.cxx
parent32b63ef915eadc1d5e48c63e09ca1a65e0f0ca52 (diff)
downloadCMake-3c8e899102dc58efa5301240f5bf5bf2225c2b65.zip
CMake-3c8e899102dc58efa5301240f5bf5bf2225c2b65.tar.gz
CMake-3c8e899102dc58efa5301240f5bf5bf2225c2b65.tar.bz2
ENH: add support for per config target LINK_FLAGS
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 38b9700..55b80ef 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -626,7 +626,15 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
extraLinkOptions += " ";
extraLinkOptions += targetLinkFlags;
}
-
+ std::string configTypeUpper = cmSystemTools::UpperCase(configName);
+ std::string linkFlagsConfig = "LINK_FLAGS_";
+ linkFlagsConfig += configTypeUpper;
+ targetLinkFlags = target.GetProperty(linkFlagsConfig.c_str());
+ if(targetLinkFlags)
+ {
+ extraLinkOptions += " ";
+ extraLinkOptions += targetLinkFlags;
+ }
std::map<cmStdString, cmStdString> flagMap;
this->
FillFlagMapFromCommandFlags(flagMap,