| 1593 | } |
| 1594 | |
| 1595 | bool cmGeneratorTarget::MacOSXUseInstallNameDir() const |
| 1596 | { |
| 1597 | cmValue build_with_install_name = |
| 1598 | this->GetProperty("BUILD_WITH_INSTALL_NAME_DIR"); |
| 1599 | if (build_with_install_name) { |
| 1600 | return build_with_install_name.IsOn(); |
| 1601 | } |
| 1602 | |
| 1603 | cmPolicies::PolicyStatus cmp0068 = this->GetPolicyStatusCMP0068(); |
| 1604 | if (cmp0068 == cmPolicies::NEW) { |
| 1605 | return false; |
| 1606 | } |
| 1607 | |
| 1608 | bool use_install_name = this->GetPropertyAsBool("BUILD_WITH_INSTALL_RPATH"); |
| 1609 | |
| 1610 | if (use_install_name && cmp0068 == cmPolicies::WARN) { |
| 1611 | this->LocalGenerator->GetGlobalGenerator()->AddCMP0068WarnTarget( |
| 1612 | this->GetName()); |
| 1613 | } |
| 1614 | |
| 1615 | return use_install_name; |
| 1616 | } |
| 1617 | |
| 1618 | bool cmGeneratorTarget::CanGenerateInstallNameDir( |
| 1619 | InstallNameType name_type) const |
no test coverage detected