summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.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/cmTarget.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/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index a4b3938..ea718ae 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3782,6 +3782,10 @@ std::string cmTarget::GetSOName(const char* config)
else
{
// Use the soname given if any.
+ if(info->SOName.find("@rpath/") == 0)
+ {
+ return info->SOName.substr(6);
+ }
return info->SOName;
}
}