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

Method ComputeIncludes

Source/cmNinjaTargetGenerator.cxx:339–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339std::string cmNinjaTargetGenerator::ComputeIncludes(
340 cmSourceFile const* source, std::string const& language,
341 std::string const& config)
342{
343 std::vector<std::string> includes;
344 cmGeneratorExpressionInterpreter genexInterpreter(
345 this->LocalGenerator, config, this->GeneratorTarget, language);
346
347 std::string const INCLUDE_DIRECTORIES("INCLUDE_DIRECTORIES");
348 if (cmValue cincludes = source->GetProperty(INCLUDE_DIRECTORIES)) {
349 this->LocalGenerator->AppendIncludeDirectories(
350 includes, genexInterpreter.Evaluate(*cincludes, INCLUDE_DIRECTORIES),
351 *source);
352 }
353
354 std::string includesString = this->LocalGenerator->GetIncludeFlags(
355 includes, this->GeneratorTarget, language, config, false);
356 this->LocalGenerator->AppendFlags(includesString,
357 this->GetIncludes(language, config));
358
359 return includesString;
360}
361
362cmNinjaDeps cmNinjaTargetGenerator::ComputeLinkDeps(
363 std::string const& linkLanguage, std::string const& config,

Calls 6

GetIncludeFlagsMethod · 0.80
GetPropertyMethod · 0.45
EvaluateMethod · 0.45
AppendFlagsMethod · 0.45
GetIncludesMethod · 0.45

Tested by

no test coverage detected