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

Method GetDefines

Source/cmCommonTargetGenerator.cxx:135–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135std::string cmCommonTargetGenerator::GetDefines(std::string const& l,
136 std::string const& config)
137{
138 auto i = this->Configs[config].DefinesByLanguage.find(l);
139 if (i == this->Configs[config].DefinesByLanguage.end()) {
140 std::set<std::string> defines;
141 this->LocalCommonGenerator->GetTargetDefines(this->GeneratorTarget, config,
142 l, defines);
143
144 std::string definesString;
145 this->LocalCommonGenerator->JoinDefines(defines, definesString, l);
146
147 ByLanguageMap::value_type entry(l, definesString);
148 i = this->Configs[config].DefinesByLanguage.insert(entry).first;
149 }
150 return i->second;
151}
152
153std::string cmCommonTargetGenerator::GetIncludes(std::string const& l,
154 std::string const& config)

Callers 7

WriteObjectRuleFilesMethod · 0.45
ComputeDefinesMethod · 0.45
ComputeDefinesMethod · 0.45
WriteLinkStatementMethod · 0.45
ComputeRcOptionsMethod · 0.45

Calls 5

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

Tested by

no test coverage detected