[cmake-commits] king committed cmTarget.cxx 1.201 1.202

cmake-commits at cmake.org cmake-commits at cmake.org
Sat Mar 1 13:02:10 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv26739/Source

Modified Files:
	cmTarget.cxx 
Log Message:
BUG: Do not try to change the RPATH when installing a target if CMAKE_SKIP_RPATH is on or the path does not need to be changed.


Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.201
retrieving revision 1.202
diff -u -d -r1.201 -r1.202
--- cmTarget.cxx	1 Mar 2008 17:51:07 -0000	1.201
+++ cmTarget.cxx	1 Mar 2008 18:02:08 -0000	1.202
@@ -3007,6 +3007,18 @@
 bool cmTarget::IsChrpathUsed()
 {
 #if defined(CMAKE_USE_ELF_PARSER)
+  // Skip chrpath if skipping rpath altogether.
+  if(this->Makefile->IsOn("CMAKE_SKIP_RPATH"))
+    {
+    return false;
+    }
+
+  // Skip chrpath if it does not need to be changed at install time.
+  if(this->GetPropertyAsBool("BUILD_WITH_INSTALL_RPATH"))
+    {
+    return false;
+    }
+
   // Enable if the rpath flag uses a separator and the target uses ELF
   // binaries.
   if(const char* ll = this->GetLinkerLanguage(



More information about the Cmake-commits mailing list