summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-12-18 22:50:27 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-12-18 22:50:27 (GMT)
commit3ae731fab7a3b992c321226262076a2622f64c11 (patch)
tree223da7b100533710445dde2a52243baff0883452 /Source/cmTarget.h
parentf5f397debde141a15225ea52bc2768d723a27375 (diff)
downloadCMake-3ae731fab7a3b992c321226262076a2622f64c11.zip
CMake-3ae731fab7a3b992c321226262076a2622f64c11.tar.gz
CMake-3ae731fab7a3b992c321226262076a2622f64c11.tar.bz2
ENH: add support for chrpath, so the RPATH in ELF files can be changed when
installing without having to link the target again -> can save a lot of time chrpath is handled very similar to install_name_tool on the mac. If the RPATH in the build tree file is to short, it is padded using the separator character. This is currently disabled by default, it can be enabled using the option CMAKE_USE_CHRPATH. There are additional checks whether it is safe to enable it. I will rework them and use FILE(READ) instead to detect whether the binaries are actually ELF files. chrpath is available here http://www.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/ or kde svn (since a few days): http://websvn.kde.org/trunk/kdesupport/chrpath/ Alex
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 44e0a05..879693a 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -277,6 +277,9 @@ public:
bool HaveBuildTreeRPATH();
bool HaveInstallTreeRPATH();
+
+ /// return true if chrpath might work for this target
+ bool IsChrpathAvailable();
std::string GetInstallNameDirForBuildTree(const char* config);
std::string GetInstallNameDirForInstallTree(const char* config);