Skip to content

Commit

Permalink
Fix for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
reverendbedford committed Nov 19, 2024
1 parent 4bbae8a commit ffd4569
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ endif()
# Do some tricky things for the python package
option(PYTHON_PACKAGE "Generate a build for a python package, should be OFF except in setupy.py" OFF)
if (PYTHON_PACKAGE)
set(CMAKE_INSTALL_RPATH "$ORIGIN")
if (APPLE)
set(CMAKE_INSTALL_RPATH "@loader_path")
else()
set(CMAKE_INSTALL_RPATH "$ORIGIN")
endif()
endif()

option(WRAP_PYTHON "Generate a pybind11 wrapper" OFF)
Expand Down

0 comments on commit ffd4569

Please sign in to comment.