| 647 | } |
| 648 | |
| 649 | void 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 | } |
no test coverage detected