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

Method MacOSXUseInstallNameDir

Source/cmGeneratorTarget.cxx:1595–1616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595bool 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
1618bool cmGeneratorTarget::CanGenerateInstallNameDir(
1619 InstallNameType name_type) const

Calls 6

GetPropertyMethod · 0.95
GetPropertyAsBoolMethod · 0.95
AddCMP0068WarnTargetMethod · 0.80
IsOnMethod · 0.45
GetGlobalGeneratorMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected