summaryrefslogtreecommitdiffstats
path: root/Source/cmExportTryCompileFileGenerator.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/cmExportTryCompileFileGenerator.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/cmExportTryCompileFileGenerator.cxx')
-rw-r--r--Source/cmExportTryCompileFileGenerator.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.cxx b/Source/cmExportTryCompileFileGenerator.cxx
index 75f2651..948508b 100644
--- a/Source/cmExportTryCompileFileGenerator.cxx
+++ b/Source/cmExportTryCompileFileGenerator.cxx
@@ -112,3 +112,18 @@ cmExportTryCompileFileGenerator::PopulateProperties(cmTarget* target,
}
}
}
+std::string
+cmExportTryCompileFileGenerator::InstallNameDir(cmTarget* target,
+ const std::string& config)
+{
+ std::string install_name_dir;
+
+ cmMakefile* mf = target->GetMakefile();
+ if(mf->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME"))
+ {
+ install_name_dir =
+ target->GetInstallNameDirForBuildTree(config.c_str());
+ }
+
+ return install_name_dir;
+}