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

Method PopulateSourcesInterface

Source/cmExportInstallFileGenerator.cxx:492–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492void cmExportInstallFileGenerator::PopulateSourcesInterface(
493 cmGeneratorTarget const* gt,
494 cmGeneratorExpression::PreprocessContext preprocessRule,
495 ImportPropertyMap& properties)
496{
497 assert(preprocessRule == cmGeneratorExpression::InstallInterface);
498
499 char const* const propName = "INTERFACE_SOURCES";
500 cmValue input = gt->GetProperty(propName);
501
502 if (!input) {
503 return;
504 }
505
506 if (input->empty()) {
507 properties[propName].clear();
508 return;
509 }
510
511 std::string prepro = cmGeneratorExpression::Preprocess(
512 *input, preprocessRule, this->GetImportPrefixWithSlash());
513 if (!prepro.empty()) {
514 this->ResolveTargetsInGeneratorExpressions(prepro, gt);
515
516 if (!this->CheckInterfaceDirs(prepro, gt, propName)) {
517 return;
518 }
519 properties[propName] = prepro;
520 }
521}
522
523void cmExportInstallFileGenerator::PopulateSystemIncludeDirectoriesInterface(
524 cmGeneratorTarget const* target,

Callers 1

Calls 6

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

Tested by

no test coverage detected