mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
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).
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user