From 78d55e70797c8f9843b7424b1e8c184c46d63084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Wed, 20 Nov 2019 11:55:23 -0700 Subject: [PATCH] Set the proper RPATH for installed libraries --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 793d834fa9..95d6a34cae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,10 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # Find includes in the build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) +if(NOT APPLE) + set(CMAKE_INSTALL_RPATH $ORIGIN) +endif() + # Common Includes for JKQtPlotter include(jkqtplotter_common_include)