diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2013-05-20 22:57:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-03 13:42:05 (GMT) |
commit | 8576b3f978e65a9c94630226e1da3f03047691a7 (patch) | |
tree | 256b6205b49a5518434f87484bf37811cfb3d27f /Source/cmExportBuildFileGenerator.cxx | |
parent | 00d71bdd193b645aec10b41866bddb164c0eb093 (diff) | |
download | CMake-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/cmExportBuildFileGenerator.cxx')
-rw-r--r-- | Source/cmExportBuildFileGenerator.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx index f8a32c2..75a8aba 100644 --- a/Source/cmExportBuildFileGenerator.cxx +++ b/Source/cmExportBuildFileGenerator.cxx @@ -211,3 +211,19 @@ cmExportBuildFileGenerator << "consider using the APPEND option with multiple separate calls."; this->ExportCommand->ErrorMessage = e.str(); } + +std::string +cmExportBuildFileGenerator::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; +} |