MCPcopy Create free account
hub / github.com/Kitware/CMake / GetDefines

Method GetDefines

Source/cmGhsMultiTargetGenerator.cxx:223–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223std::string cmGhsMultiTargetGenerator::GetDefines(std::string const& language,
224 std::string const& config)
225{
226 auto i = this->DefinesByLanguage.find(language);
227 if (i == this->DefinesByLanguage.end()) {
228 std::set<std::string> defines;
229 // Add preprocessor definitions for this target and configuration.
230 this->LocalGenerator->GetTargetDefines(this->GeneratorTarget, config,
231 language, defines);
232
233 std::string definesString;
234 this->LocalGenerator->JoinDefines(defines, definesString, language);
235
236 std::map<std::string, std::string>::value_type entry(language,
237 definesString);
238 i = this->DefinesByLanguage.insert(entry).first;
239 }
240 return i->second;
241}
242
243void cmGhsMultiTargetGenerator::WriteCompilerFlags(std::ostream& fout,
244 std::string const&,

Callers

nothing calls this directly

Calls 5

GetTargetDefinesMethod · 0.80
JoinDefinesMethod · 0.80
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected