Unverified Commit ce92624a authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

[CMake] set INSTALL_RPATH for python on linux (#139)

To avoid the need to set `LD_LIBRARY_PATH` when the
`CMAKE_INSTALL_PREFIX` is not a standard one.
parent 5a6b4528
Pipeline #15473 passed with stage
in 25 minutes and 15 seconds
#
# Copyright (c) 2017-2020 CNRS
# Copyright (c) 2017-2021 CNRS
#
# This file is part of tsid
# tsid is free software: you can redistribute it
......@@ -44,6 +44,10 @@ ENDIF(APPLE)
SET_TARGET_PROPERTIES(${PYWRAP} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_NAME})
IF(UNIX AND NOT APPLE)
SET_TARGET_PROPERTIES(${PYWRAP} PROPERTIES INSTALL_RPATH "\$ORIGIN/../../..")
ENDIF()
INSTALL(TARGETS ${PYWRAP} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION ${PYTHON_SITELIB}/${PROJECT_NAME})
SET(PYTHON_FILES
......
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