summaryrefslogtreecommitdiff
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-02 13:51:49 -0400
committerBrad King <brad.king@kitware.com>2009-10-02 13:51:49 -0400
commit57df2abca804dd8e98d000441fc0035eef9d4829 (patch)
tree2de2390a8c812bba6d1ce203c897c9f2aec93844 /Source/cmMakefileExecutableTargetGenerator.cxx
parentd455eeb6d7f178df4b8b199af540626a26722bb6 (diff)
downloadcmake-57df2abca804dd8e98d000441fc0035eef9d4829.tar.gz
Centralize language flag addition for Makefiles
We create cmMakefileTargetGenerator::AddFeatureFlags to consolidate addition of language flags. Currently it just adds the flags from generic per-language flag variables (AddLanguageFlags).
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index c7213a66c5..16e226608f 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -231,9 +231,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
(linkFlags, this->Makefile->GetDefinition(export_flag_var.c_str()));
}
- // Add language-specific flags.
- this->LocalGenerator
- ->AddLanguageFlags(flags, linkLanguage, this->ConfigName);
+ // Add language feature flags.
+ this->AddFeatureFlags(flags, linkLanguage);
// Add target-specific linker flags.
this->LocalGenerator->AppendFlags