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

Method AddIncludeFlags

Source/cmNinjaTargetGenerator.cxx:287–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287void cmNinjaTargetGenerator::AddIncludeFlags(std::string& languageFlags,
288 std::string const& language,
289 std::string const& config)
290{
291 std::vector<std::string> includes;
292 this->LocalGenerator->GetIncludeDirectories(includes, this->GeneratorTarget,
293 language, config);
294 // Add include directory flags.
295 std::string includeFlags = this->LocalGenerator->GetIncludeFlags(
296 includes, this->GeneratorTarget, language, config, false);
297 if (this->GetGlobalGenerator()->IsGCCOnWindows()) {
298 std::replace(includeFlags.begin(), includeFlags.end(), '\\', '/');
299 }
300
301 this->LocalGenerator->AppendFlags(languageFlags, includeFlags);
302}
303
304// TODO: Refactor with
305// void cmMakefileTargetGenerator::WriteTargetLanguageFlags().

Callers 1

GetIncludesMethod · 0.45

Calls 7

GetGlobalGeneratorMethod · 0.95
GetIncludeFlagsMethod · 0.80
IsGCCOnWindowsMethod · 0.80
GetIncludeDirectoriesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
AppendFlagsMethod · 0.45

Tested by

no test coverage detected