Skip to content
Snippets Groups Projects
Commit aff6b008 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

wheel: add the required rpath entry for wheels

parent 2412480a
No related branches found
No related tags found
No related merge requests found
......@@ -373,6 +373,14 @@ if (VTK_WRAP_PYTHON)
"${vtk_required_python_modules}\n")
get_property(vtk_soabi GLOBAL
PROPERTY _vtk_python_soabi)
if (APPLE AND VTK_WHEEL_BUILD)
list(APPEND CMAKE_INSTALL_RPATH
# Wheels place loaded libraries under a `.dylibs` subdirectory. Add this
# to the rpath list.
"@loader_path/.dylibs")
endif ()
vtk_module_wrap_python(
MODULES ${vtk_modules}
INSTALL_EXPORT VTKPython
......@@ -385,6 +393,11 @@ if (VTK_WRAP_PYTHON)
WRAPPED_MODULES vtk_python_wrapped_modules
TARGET VTK::vtkpythonmodules)
if (APPLE AND VTK_WHEEL_BUILD)
list(REMOVE_ITEM CMAKE_INSTALL_RPATH
"@loader_path/.dylibs")
endif ()
add_subdirectory(Wrapping/Python)
export(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment