mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
Merge topic 'remove-AddCompileDefinitions'
8f076acdb0 cmLocalGenerator: Remove AddCompileDefinitions method
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2470
This commit is contained in:
@@ -804,16 +804,6 @@ std::string cmLocalGenerator::GetIncludeFlags(
|
||||
return flags;
|
||||
}
|
||||
|
||||
void cmLocalGenerator::AddCompileDefinitions(std::set<std::string>& defines,
|
||||
cmGeneratorTarget const* target,
|
||||
const std::string& config,
|
||||
const std::string& lang) const
|
||||
{
|
||||
std::vector<std::string> targetDefines;
|
||||
target->GetCompileDefinitions(targetDefines, config, lang);
|
||||
this->AppendDefines(defines, targetDefines);
|
||||
}
|
||||
|
||||
void cmLocalGenerator::AddCompileOptions(std::string& flags,
|
||||
cmGeneratorTarget* target,
|
||||
const std::string& lang,
|
||||
@@ -1268,7 +1258,9 @@ void cmLocalGenerator::GetTargetDefines(cmGeneratorTarget const* target,
|
||||
}
|
||||
|
||||
// Add preprocessor definitions for this target and configuration.
|
||||
this->AddCompileDefinitions(defines, target, config, lang);
|
||||
std::vector<std::string> targetDefines;
|
||||
target->GetCompileDefinitions(targetDefines, config, lang);
|
||||
this->AppendDefines(defines, targetDefines);
|
||||
}
|
||||
|
||||
std::string cmLocalGenerator::GetTargetFortranFlags(
|
||||
|
||||
Reference in New Issue
Block a user