summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-04-26 08:11:50 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2018-06-06 15:02:33 (GMT)
commit8e28d2630a60475dad715162a1802d301ada35bd (patch)
tree1c9f7c687ecfb7535240bd41933388191a144e66 /Source/cmMakefileTargetGenerator.cxx
parent074bb25ca05e095fd8efef9ed0b3b9f9771bf624 (diff)
downloadCMake-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.cxx11
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.