Skip to content

Commit

Permalink
cmake: Build macOS wheels setting @loader_path
Browse files Browse the repository at this point in the history
This will ensure modules can load and resolve symbols from dependent
VTK libraries.
  • Loading branch information
prabhuramachandran authored and jcfr committed Jan 31, 2018
1 parent 962ae4f commit d135014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ if(VTKPythonPackage_SUPERBUILD)
list(APPEND ep_common_cmake_cache_args
-DCMAKE_INSTALL_RPATH:STRING=$ORIGIN
)
elseif(APPLE)
list(APPEND ep_common_cmake_cache_args
-DCMAKE_INSTALL_NAME_DIR:STRING=@loader_path
-DCMAKE_INSTALL_RPATH:STRING=@loader_path
)
endif()

ExternalProject_add(VTK
Expand Down

0 comments on commit d135014

Please sign in to comment.