diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-04-26 08:11:50 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-06-06 15:02:33 (GMT) |
commit | 8e28d2630a60475dad715162a1802d301ada35bd (patch) | |
tree | 1c9f7c687ecfb7535240bd41933388191a144e66 /Source/cmMakefileTargetGenerator.cxx | |
parent | 074bb25ca05e095fd8efef9ed0b3b9f9771bf624 (diff) | |
download | CMake-8e28d2630a60475dad715162a1802d301ada35bd.zip CMake-8e28d2630a60475dad715162a1802d301ada35bd.tar.gz CMake-8e28d2630a60475dad715162a1802d301ada35bd.tar.bz2 |
Makefile generator: link flags management refactoring
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 1f65f08..8cbddd9 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -82,6 +82,17 @@ cmMakefileTargetGenerator* cmMakefileTargetGenerator::New( return result; } +void cmMakefileTargetGenerator::GetTargetLinkFlags(std::string& flags) +{ + this->LocalGenerator->AppendFlags( + flags, this->GeneratorTarget->GetProperty("LINK_FLAGS")); + + std::string linkFlagsConfig = "LINK_FLAGS_"; + linkFlagsConfig += cmSystemTools::UpperCase(this->ConfigName); + this->LocalGenerator->AppendFlags( + flags, this->GeneratorTarget->GetProperty(linkFlagsConfig)); +} + void cmMakefileTargetGenerator::CreateRuleFile() { // Create a directory for this target. |