| 1616 | } |
| 1617 | |
| 1618 | bool cmGeneratorTarget::CanGenerateInstallNameDir( |
| 1619 | InstallNameType name_type) const |
| 1620 | { |
| 1621 | cmPolicies::PolicyStatus cmp0068 = this->GetPolicyStatusCMP0068(); |
| 1622 | |
| 1623 | if (cmp0068 == cmPolicies::NEW) { |
| 1624 | return true; |
| 1625 | } |
| 1626 | |
| 1627 | bool skip = this->Makefile->IsOn("CMAKE_SKIP_RPATH"); |
| 1628 | if (name_type == INSTALL_NAME_FOR_INSTALL) { |
| 1629 | skip |= this->Makefile->IsOn("CMAKE_SKIP_INSTALL_RPATH"); |
| 1630 | } else { |
| 1631 | skip |= this->GetPropertyAsBool("SKIP_BUILD_RPATH"); |
| 1632 | } |
| 1633 | |
| 1634 | if (skip && cmp0068 == cmPolicies::WARN) { |
| 1635 | this->LocalGenerator->GetGlobalGenerator()->AddCMP0068WarnTarget( |
| 1636 | this->GetName()); |
| 1637 | } |
| 1638 | |
| 1639 | return !skip; |
| 1640 | } |
| 1641 | |
| 1642 | std::string cmGeneratorTarget::GetSOName( |
| 1643 | std::string const& config, cmStateEnums::ArtifactType artifact) const |
no test coverage detected