Unverified Commit 50111167 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #241 from nim65s/topic/rpath

[CMake] set INSTALL_RPATH for python on linux
parents 99454d62 7e3c1f44
Pipeline #15476 passed with stage
in 12 minutes and 41 seconds
#
# Copyright (c) 2014-2020 CNRS INRIA
# Copyright (c) 2014-2021 CNRS INRIA
#
# --- LIBRARY --- #
......@@ -33,6 +33,10 @@ SET_TARGET_PROPERTIES(${PYWRAP}
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/python/${PROJECT_NAME}"
)
IF(UNIX AND NOT APPLE)
SET_TARGET_PROPERTIES(${PYWRAP} PROPERTIES INSTALL_RPATH "\$ORIGIN/../../..")
ENDIF()
INSTALL(TARGETS ${PYWRAP} DESTINATION ${${PYWRAP}_INSTALL_DIR})
# --- INSTALL SCRIPTS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment