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

Method MacOSXRpathInstallNameDirDefault

Source/cmGeneratorTarget.cxx:1580–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1578}
1579
1580bool cmGeneratorTarget::MacOSXRpathInstallNameDirDefault() const
1581{
1582 // we can't do rpaths when unsupported
1583 if (!this->Makefile->IsSet("CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG")) {
1584 return false;
1585 }
1586
1587 cmValue macosx_rpath_str = this->GetProperty("MACOSX_RPATH");
1588 if (macosx_rpath_str) {
1589 return this->GetPropertyAsBool("MACOSX_RPATH");
1590 }
1591
1592 return true;
1593}
1594
1595bool cmGeneratorTarget::MacOSXUseInstallNameDir() const
1596{

Calls 3

GetPropertyMethod · 0.95
GetPropertyAsBoolMethod · 0.95
IsSetMethod · 0.45

Tested by

no test coverage detected