From f7fd40eae09604425b8941d67fa94b7a2877d238 Mon Sep 17 00:00:00 2001 From: Szilard Pall Date: Wed, 3 Nov 2010 12:32:52 +0100 Subject: [PATCH] now it's possible to run binaries in the build tree (fixes bug #570) Changed CMAKE_BUILD_WITH_INSTALL_RPATH to FALSE which results in the rpath being rewritten on while installing binaries. CPack also works. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d49a828f7..fe25bcf4e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -752,7 +752,7 @@ set(GMXLIBDIR ${DATA_INSTALL_DIR}/top) ################################################################## if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(CMAKE_SKIP_BUILD_RPATH FALSE) - set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) + set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}") set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif() -- 2.22.0