summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2013-05-20 22:57:58 (GMT)
committerBrad King <brad.king@kitware.com>2013-06-03 13:42:05 (GMT)
commit8576b3f978e65a9c94630226e1da3f03047691a7 (patch)
tree256b6205b49a5518434f87484bf37811cfb3d27f /Source/cmExportInstallFileGenerator.cxx
parent00d71bdd193b645aec10b41866bddb164c0eb093 (diff)
downloadCMake-8576b3f978e65a9c94630226e1da3f03047691a7.zip
CMake-8576b3f978e65a9c94630226e1da3f03047691a7.tar.gz
CMake-8576b3f978e65a9c94630226e1da3f03047691a7.tar.bz2
OS X: Add support for @rpath in export files.
Also expand the IMPORTED_SONAME property for targets to match the install_name.
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index fff807c..9d1bdaf 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -490,3 +490,19 @@ cmExportInstallFileGenerator
}
cmSystemTools::Error(e.str().c_str());
}
+
+std::string
+cmExportInstallFileGenerator::InstallNameDir(cmTarget* target,
+ const std::string&)
+{
+ std::string install_name_dir;
+
+ cmMakefile* mf = target->GetMakefile();
+ if(mf->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME"))
+ {
+ install_name_dir =
+ target->GetInstallNameDirForInstallTree();
+ }
+
+ return install_name_dir;
+}