Skip to content

Commit

Permalink
Update RPATH setting to generalized method
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Aug 18, 2023
1 parent d548c90 commit d427b19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d427b19

Please sign in to comment.