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

Method PopulateLinkDirectoriesInterface

Source/cmExportInstallFileGenerator.cxx:649–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649void cmExportInstallFileGenerator::PopulateLinkDirectoriesInterface(
650 cmGeneratorTarget const* gt,
651 cmGeneratorExpression::PreprocessContext preprocessRule,
652 ImportPropertyMap& properties)
653{
654 assert(preprocessRule == cmGeneratorExpression::InstallInterface);
655
656 char const* const propName = "INTERFACE_LINK_DIRECTORIES";
657 cmValue input = gt->GetProperty(propName);
658
659 if (!input) {
660 return;
661 }
662
663 if (input->empty()) {
664 properties[propName].clear();
665 return;
666 }
667
668 std::string prepro = cmGeneratorExpression::Preprocess(
669 *input, preprocessRule, this->GetImportPrefixWithSlash());
670 if (!prepro.empty()) {
671 this->ResolveTargetsInGeneratorExpressions(prepro, gt);
672
673 if (!this->CheckInterfaceDirs(prepro, gt, propName)) {
674 return;
675 }
676 properties[propName] = prepro;
677 }
678}

Callers 1

Calls 6

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

Tested by

no test coverage detected