Skip to content

Commit 412e940

Browse files
committed
fix: Ensure platform_tag is properly set on macOS
Since `Python_SOABI` is set to value like `cpython-XYZ-darwin`, this instead check the value of `CMAKE_OSX_ARCHITECTURES`.
1 parent 9289239 commit 412e940

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmake/vtk-sdk-urls.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
message(STATUS "SKBUILD_SOABI: ${SKBUILD_SOABI}")
66
message(STATUS "Python_SOABI: ${Python_SOABI}")
7+
if(APPLE)
8+
message(STATUS "CMAKE_OSX_ARCHITECTURES: ${CMAKE_OSX_ARCHITECTURES}")
9+
endif()
710

811
message(STATUS "Setting VTK_SDK_BINARY_URL")
912

@@ -21,8 +24,9 @@ if(LINUX)
2124
set(plaform_tag "manylinux_2_28_aarch64")
2225
endif()
2326
elseif(APPLE)
24-
set(plaform_tag "macosx_10_10_x86_64")
25-
if(Python_SOABI MATCHES "arm64")
27+
if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
28+
set(plaform_tag "macosx_10_10_x86_64")
29+
elseif(CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
2630
set(plaform_tag "macosx_11_0_arm64")
2731
endif()
2832
elseif(WIN32)

0 commit comments

Comments
 (0)