Skip to content

Commit

Permalink
CMake: fix RPATH on macos
Browse files Browse the repository at this point in the history
Re-apply #1908 which was
somehow forgottent during the v3 merge.

fix #2545
  • Loading branch information
nim65s committed Jan 6, 2025
1 parent 033a56f commit f7a92a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function(PINOCCHIO_PYTHON_BINDINGS_SPECIFIC_TYPE scalar_name)
# On Windows, shared library are treat as binary
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bindings/python/${PROJECT_NAME}")

if(UNIX AND NOT APPLE)
if(UNIX)
get_relative_rpath(${${PYWRAP}_INSTALL_DIR} ${PYWRAP}_INSTALL_RPATH)
set_target_properties(${PYTHON_LIB_NAME} PROPERTIES INSTALL_RPATH "${${PYWRAP}_INSTALL_RPATH}")
endif()
Expand Down

0 comments on commit f7a92a4

Please sign in to comment.