Skip to content

Commit

Permalink
don't use SABIModule for older python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Aug 25, 2023
1 parent 2070495 commit 14f97ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ endif()

if(MANIFOLD_PYBIND)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
find_package(Python COMPONENTS Interpreter Development.SABIModule REQUIRED)
if(Python_VERSION VERSION_LESS 3.12)
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
else()
find_package(Python COMPONENTS Interpreter Development.SABIModule REQUIRED)
endif()
endif()

set(THRUST_INC_DIR ${PROJECT_SOURCE_DIR}/src/third_party/thrust)
Expand Down

0 comments on commit 14f97ed

Please sign in to comment.