summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.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/cmLocalGenerator.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/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx18
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;