From d427b1917ab8f40b14b2f21ac015e21ec018097a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Fri, 18 Aug 2023 14:44:33 +0200 Subject: [PATCH] Update RPATH setting to generalized method --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fac3331b87..6a5e4258aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -403,7 +403,6 @@ endif() if(openPMD_HAVE_JULIA) get_target_property(JlCxx_location JlCxx::cxxwrap_julia LOCATION) get_filename_component(JlCxx_location ${JlCxx_location} DIRECTORY) - set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib;${JlCxx_location}") message(STATUS "Found JlCxx version ${JlCxx_VERSION} at ${JlCxx_location}") endif() @@ -1133,6 +1132,9 @@ if(openPMD_INSTALL) if(openPMD_HAVE_PYTHON) list(APPEND openPMD_INSTALL_RPATH_TARGET_NAMES openPMD.py) endif() + if(openPMD_HAVE_JULIA) + list(APPEND openPMD_INSTALL_RPATH_TARGET_NAMES openPMD.jl) + endif() if(NOT DEFINED CMAKE_INSTALL_RPATH) if(APPLE) set_target_properties(${openPMD_INSTALL_RPATH_TARGET_NAMES} PROPERTIES