summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-02-19 23:34:11 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-03-05 21:24:57 (GMT)
commit635bf50c27aef184bfa1698953dd44361e1fb2f9 (patch)
tree9f3a89ffa2aa2251c0b85457c107cd48db543a53 /Source/cmComputeLinkInformation.cxx
parente316cbbbc32bd7711c4bbd96ab34adfa79722d79 (diff)
downloadCMake-635bf50c27aef184bfa1698953dd44361e1fb2f9.zip
CMake-635bf50c27aef184bfa1698953dd44361e1fb2f9.tar.gz
CMake-635bf50c27aef184bfa1698953dd44361e1fb2f9.tar.bz2
Add an option to skip RPATH during installation.
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r--Source/cmComputeLinkInformation.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx
index edf6c35..c57b85d 100644
--- a/Source/cmComputeLinkInformation.cxx
+++ b/Source/cmComputeLinkInformation.cxx
@@ -1760,6 +1760,7 @@ void cmComputeLinkInformation::GetRPath(std::vector<std::string>& runtimeDirs,
!linking_for_install);
bool use_link_rpath =
outputRuntime && linking_for_install &&
+ !this->Makefile->IsOn("CMAKE_SKIP_INSTALL_RPATH") &&
this->Target->GetPropertyAsBool("INSTALL_RPATH_USE_LINK_PATH");
// Construct the RPATH.