| 638 | |
| 639 | namespace { |
| 640 | void 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 */ |
no test coverage detected
searching dependent graphs…