Skip to content

Commit

Permalink
fix(macos): enable rpath at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 18, 2024
1 parent 45aa536 commit d2f380d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ list(APPEND CMAKE_PREFIX_PATH ${VIENNAPS_LOOKUP_DIRS})
# --------------------------------------------------------------------------------------------------------

if(VIENNAPS_BUILD_PYTHON)
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_PLATFORM_NO_VERSIONED_SONAME ON)
endif()

Expand Down
2 changes: 0 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ add_custom_target(${PROJECT_NAME} ALL)
# set the rpath for our python modules to point to the vtkmodules folder.
# --------------------------------------------------------------------------------------------------------

set(CMAKE_MACOSX_RPATH ON)

list(APPEND CMAKE_INSTALL_RPATH "$ORIGIN")
list(APPEND CMAKE_INSTALL_RPATH "$ORIGIN/../vtkmodules")
list(APPEND CMAKE_INSTALL_RPATH "$ORIGIN/../viennaps.libs")
Expand Down

0 comments on commit d2f380d

Please sign in to comment.