summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-28 13:55:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-04-28 13:55:44 (GMT)
commitd828d0eb084cf094119d2b47dae0053267aba138 (patch)
tree00e258c1611d49ebcf08a1eefa58558e40ae3996 /Source/cmMakefileLibraryTargetGenerator.cxx
parent2911d4701675d17b817f8fbe607bb5a493cacf0c (diff)
parent47990f9fef31eb4369bb01d72a6d86de332ae196 (diff)
downloadCMake-d828d0eb084cf094119d2b47dae0053267aba138.zip
CMake-d828d0eb084cf094119d2b47dae0053267aba138.tar.gz
CMake-d828d0eb084cf094119d2b47dae0053267aba138.tar.bz2
Merge topic 'refactor-ipo-flags'
47990f9f Inline and remove AddFeatureFlags method a8667467 Add IPO compiler flags more consistently in generators Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !772
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 2823977..ec01208 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -395,9 +395,10 @@ void cmMakefileLibraryTargetGenerator::WriteDeviceLibraryRules(
vars.LinkFlags = linkFlags.c_str();
vars.TargetCompilePDB = targetOutPathCompilePDB.c_str();
- // Add language feature flags.
+ // Add language-specific flags.
std::string langFlags;
- this->AddFeatureFlags(langFlags, linkLanguage);
+ this->LocalGenerator->AddLanguageFlags(langFlags, this->GeneratorTarget,
+ linkLanguage, this->ConfigName);
vars.LanguageCompileFlags = langFlags.c_str();
@@ -853,9 +854,10 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
}
}
- // Add language feature flags.
+ // Add language-specific flags.
std::string langFlags;
- this->AddFeatureFlags(langFlags, linkLanguage);
+ this->LocalGenerator->AddLanguageFlags(langFlags, this->GeneratorTarget,
+ linkLanguage, this->ConfigName);
this->LocalGenerator->AddArchitectureFlags(
langFlags, this->GeneratorTarget, linkLanguage, this->ConfigName);