Skip to content

Commit

Permalink
COMP: Fix macOS extension packaging updating VTK9 python modules fixu…
Browse files Browse the repository at this point in the history
…p rules

This updates Slicer extension fix-up rules adapting a similar fix done
for Slicer core in 0b15603 (COMP: Fix macOS package setting "path" in
VTK9 python modules fixup rules)
  • Loading branch information
jcfr committed Jan 12, 2024
1 parent 52b238d commit b156f89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMake/SlicerExtensionCPackBundleFixup.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ function(gp_item_default_embedded_path_override item default_embedded_path_var)
if(item MATCHES "libpython[^/]+\\.dylib$")
set(path "@fixup_path@/lib/Python/lib")
endif()
# VTK python modules
if(item MATCHES "@CMAKE_BINARY_DIR@/.+/vtkmodules/[^/]+\\.so$")
set(path "@fixup_path@/@Slicer_BUNDLE_EXTENSIONS_LOCATION@bin/Python/vtkmodules")
elseif(item MATCHES "vtkmodules/[^/]+\\.so$")
set(path "@fixup_path@/bin/Python/vtkmodules")
endif()
endif()

set(Slicer_BUILD_CLI_SUPPORT "@Slicer_BUILD_CLI_SUPPORT@")
Expand Down

0 comments on commit b156f89

Please sign in to comment.