From 104cee3ecef6db5a876ce4135c0d296d72b713d4 Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Sun, 16 Nov 2014 14:04:51 -0500 Subject: [PATCH] rpath fix for linux (again) --- cmake/TorchPathsInit.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/TorchPathsInit.cmake b/cmake/TorchPathsInit.cmake index 0ca0c7d9..2b59c4a0 100644 --- a/cmake/TorchPathsInit.cmake +++ b/cmake/TorchPathsInit.cmake @@ -21,6 +21,7 @@ IF(UNIX) OPTION(WITH_RPATH "Build libraries with executable rpaths" ON) IF(WITH_RPATH) + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) FILE(RELATIVE_PATH Torch_INSTALL_BIN2LIB "${Torch_INSTALL_BIN}" "${Torch_INSTALL_LIB}") IF(APPLE)