diff options
author | Brad King <brad.king@kitware.com> | 2009-10-02 17:51:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-02 17:51:49 (GMT) |
commit | 57df2abca804dd8e98d000441fc0035eef9d4829 (patch) | |
tree | 2de2390a8c812bba6d1ce203c897c9f2aec93844 /Source/cmMakefileLibraryTargetGenerator.cxx | |
parent | d455eeb6d7f178df4b8b199af540626a26722bb6 (diff) | |
download | CMake-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/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 9162b4c..24b037f 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -671,9 +671,11 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules vars.TargetInstallNameDir = install_name_dir.c_str(); } } + + // Add language feature flags. std::string langFlags; - this->LocalGenerator - ->AddLanguageFlags(langFlags, linkLanguage, this->ConfigName); + this->AddFeatureFlags(langFlags, linkLanguage); + // remove any language flags that might not work with the // particular os if(forbiddenFlagVar) |