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

Merge pull request #237 from nim65s/topic/rpath

[CMake] set INSTALL_RPATH for python on linux
parents 7624c32d 8debfc9b
Pipeline #15477 passed with stage
in 100 minutes and 20 seconds
......@@ -132,6 +132,10 @@ SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/python/${LIBRARY_NAME}"
)
IF(UNIX AND NOT APPLE)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "\$ORIGIN/../../..")
ENDIF()
IF(IS_ABSOLUTE ${PYTHON_SITELIB})
SET(${LIBRARY_NAME}_INSTALL_DIR ${PYTHON_SITELIB}/${LIBRARY_NAME})
ELSE()
......
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