From ae62f66033aa79cdbb564bc2e2579def43289c59 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 1 Mar 2006 19:00:08 -0500 Subject: [PATCH] ENH: CMake does not need RPATHs at all for its own executables. Disable them to avoid relinking during installation. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29afb110fb..3c4353ad73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ SET(CMake_VERSION_FULL "${CMake_VERSION}.${CMake_VERSION_PATCH}") SET(BUILD_SHARED_LIBS OFF) +# The CMake executables do not need any rpath to run in the build or +# install tree. +SET(CMAKE_SKIP_RPATH ON CACHE INTERNAL "CMake does not need RPATHs.") + SET(CMAKE_DATA_DIR "/share/CMake" CACHE STRING "Install location for data (relative to prefix).") SET(CMAKE_DOC_DIR "/doc/CMake" CACHE STRING