| 1792 | } |
| 1793 | |
| 1794 | std::string cmGeneratorTarget::GetInstallNameDirForInstallTree( |
| 1795 | std::string const& config, std::string const& installPrefix) const |
| 1796 | { |
| 1797 | if (this->Makefile->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME")) { |
| 1798 | std::string dir; |
| 1799 | cmValue install_name_dir = this->GetProperty("INSTALL_NAME_DIR"); |
| 1800 | |
| 1801 | if (this->CanGenerateInstallNameDir(INSTALL_NAME_FOR_INSTALL)) { |
| 1802 | if (cmNonempty(install_name_dir)) { |
| 1803 | dir = *install_name_dir; |
| 1804 | cmGeneratorExpression::ReplaceInstallPrefix(dir, installPrefix); |
| 1805 | dir = |
| 1806 | cmGeneratorExpression::Evaluate(dir, this->LocalGenerator, config); |
| 1807 | if (!dir.empty()) { |
| 1808 | dir = cmStrCat(dir, '/'); |
| 1809 | } |
| 1810 | } |
| 1811 | } |
| 1812 | if (!install_name_dir) { |
| 1813 | if (this->MacOSXRpathInstallNameDirDefault()) { |
| 1814 | dir = "@rpath/"; |
| 1815 | } |
| 1816 | } |
| 1817 | return dir; |
| 1818 | } |
| 1819 | return ""; |
| 1820 | } |
| 1821 | |
| 1822 | cmListFileBacktrace cmGeneratorTarget::GetBacktrace() const |
| 1823 | { |
no test coverage detected