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

Method CanGenerateInstallNameDir

Source/cmGeneratorTarget.cxx:1618–1640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1616}
1617
1618bool 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
1642std::string cmGeneratorTarget::GetSOName(
1643 std::string const& config, cmStateEnums::ArtifactType artifact) const

Calls 5

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

Tested by

no test coverage detected