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

Function handleSystemIncludesDep

Source/cmGeneratorTarget.cxx:640–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638
639namespace {
640void handleSystemIncludesDep(cmLocalGenerator const* lg,
641 cmGeneratorTarget const* depTgt,
642 std::string const& config,
643 cmGeneratorTarget const* headTarget,
644 cmGeneratorExpressionDAGChecker* dagChecker,
645 cmList& result, bool excludeImported,
646 std::string const& language)
647{
648 if (cmValue dirs =
649 depTgt->GetProperty("INTERFACE_SYSTEM_INCLUDE_DIRECTORIES")) {
650 result.append(cmGeneratorExpression::Evaluate(
651 *dirs, lg, config, headTarget, dagChecker, depTgt, language));
652 }
653 if (!depTgt->GetPropertyAsBool("SYSTEM")) {
654 return;
655 }
656 if (depTgt->IsImported()) {
657 if (excludeImported) {
658 return;
659 }
660 if (depTgt->GetPropertyAsBool("IMPORTED_NO_SYSTEM")) {
661 return;
662 }
663 }
664
665 if (cmValue dirs = depTgt->GetProperty("INTERFACE_INCLUDE_DIRECTORIES")) {
666 result.append(cmGeneratorExpression::Evaluate(
667 *dirs, lg, config, headTarget, dagChecker, depTgt, language));
668 }
669
670 if (depTgt->Target->IsFrameworkOnApple() ||
671 depTgt->IsImportedFrameworkFolderOnApple(config)) {
672 if (auto fwDescriptor = depTgt->GetGlobalGenerator()->SplitFrameworkPath(
673 depTgt->GetLocation(config))) {
674 result.push_back(fwDescriptor->Directory);
675 result.push_back(fwDescriptor->GetFrameworkPath());
676 }
677 }
678}
679}
680
681/* clang-format off */

Callers 1

Calls 11

appendMethod · 0.80
SplitFrameworkPathMethod · 0.80
push_backMethod · 0.80
GetFrameworkPathMethod · 0.80
GetPropertyMethod · 0.45
GetPropertyAsBoolMethod · 0.45
IsImportedMethod · 0.45
IsFrameworkOnAppleMethod · 0.45
GetGlobalGeneratorMethod · 0.45
GetLocationMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…