| 490 | } |
| 491 | |
| 492 | void 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 | |
| 523 | void cmExportInstallFileGenerator::PopulateSystemIncludeDirectoriesInterface( |
| 524 | cmGeneratorTarget const* target, |
no test coverage detected