Skip to content
Snippets Groups Projects
Commit 9b05e808 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

CMake: fix RPATH

parent 30ce2b58
No related branches found
No related tags found
No related merge requests found
Pipeline #28059 passed with warnings
......@@ -50,8 +50,10 @@ set_target_properties(
LIBRARY_OUTPUT_DIRECTORY
"${CMAKE_BINARY_DIR}/bindings/python/${PROJECT_NAME}")
if(UNIX AND NOT APPLE)
set_target_properties(${PYWRAP} PROPERTIES INSTALL_RPATH "\$ORIGIN/../../..")
if(UNIX)
get_relative_rpath(${${PYWRAP}_INSTALL_DIR} ${PYWRAP}_INSTALL_RPATH)
set_target_properties(${PYWRAP} PROPERTIES INSTALL_RPATH
"${${PYWRAP}_INSTALL_RPATH}")
endif()
install(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment