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/cmMakefileExecutableTargetGenerator.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/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index 7388862..37c664c 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -232,7 +232,10 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) // Add target-specific linker flags. this->LocalGenerator->AppendFlags(linkFlags, this->Target->GetProperty("LINK_FLAGS")); - + std::string linkFlagsConfig = "LINK_FLAGS_"; + linkFlagsConfig += cmSystemTools::UpperCase(this->LocalGenerator->ConfigurationName.c_str()); + this->LocalGenerator->AppendFlags(linkFlags, + this->Target->GetProperty(linkFlagsConfig.c_str())); // Construct a list of files associated with this executable that // may need to be cleaned. std::vector<std::string> exeCleanFiles; |