summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-02 17:51:49 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-02 17:51:49 (GMT)
commit57df2abca804dd8e98d000441fc0035eef9d4829 (patch)
tree2de2390a8c812bba6d1ce203c897c9f2aec93844 /Source/cmMakefileExecutableTargetGenerator.cxx
parentd455eeb6d7f178df4b8b199af540626a26722bb6 (diff)
downloadCMake-57df2abca804dd8e98d000441fc0035eef9d4829.zip
CMake-57df2abca804dd8e98d000441fc0035eef9d4829.tar.gz
CMake-57df2abca804dd8e98d000441fc0035eef9d4829.tar.bz2
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 c7213a6..16e2266 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