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

Method PopulateLinkDependsInterface

Source/cmExportInstallFileGenerator.cxx:618–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618void cmExportInstallFileGenerator::PopulateLinkDependsInterface(
619 cmGeneratorTarget const* gt,
620 cmGeneratorExpression::PreprocessContext preprocessRule,
621 ImportPropertyMap& properties)
622{
623 assert(preprocessRule == cmGeneratorExpression::InstallInterface);
624
625 char const* const propName = "INTERFACE_LINK_DEPENDS";
626 cmValue input = gt->GetProperty(propName);
627
628 if (!input) {
629 return;
630 }
631
632 if (input->empty()) {
633 properties[propName].clear();
634 return;
635 }
636
637 std::string prepro = cmGeneratorExpression::Preprocess(
638 *input, preprocessRule, this->GetImportPrefixWithSlash());
639 if (!prepro.empty()) {
640 this->ResolveTargetsInGeneratorExpressions(prepro, gt);
641
642 if (!this->CheckInterfaceDirs(prepro, gt, propName)) {
643 return;
644 }
645 properties[propName] = prepro;
646 }
647}
648
649void cmExportInstallFileGenerator::PopulateLinkDirectoriesInterface(
650 cmGeneratorTarget const* gt,

Callers 1

Calls 6

CheckInterfaceDirsMethod · 0.95
GetPropertyMethod · 0.45
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected