@@ -14,13 +14,9 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
1414# <20 for embree
1515set (CMAKE_CXX_STANDARD 17)
1616
17- if (CMAKE_VERSION VERSION_LESS 3.18)
18- set (DEV_MODULE Development)
19- else ()
20- set (DEV_MODULE Development.Module)
21- endif ()
22-
23- find_package (Python 3.8 COMPONENTS Interpreter ${DEV_MODULE} REQUIRED)
17+ find_package (Python 3.8
18+ REQUIRED COMPONENTS Interpreter Development.Module
19+ OPTIONAL_COMPONENTS Development.SABIModule)
2420
2521if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
2622 set (CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
@@ -36,7 +32,7 @@ include(FetchContent)
3632FetchContent_Declare(
3733 nanobind
3834 GIT_REPOSITORY https://github.com/wjakob/nanobind.git
39- GIT_TAG v2.2 .0
35+ GIT_TAG v2.7 .0
4036)
4137FetchContent_MakeAvailable(nanobind)
4238
@@ -49,7 +45,7 @@ option(LIBIGL_RESTRICTED_TRIANGLE "Build target igl_restricted::triangle" ON)
4945FetchContent_Declare(
5046 libigl
5147 GIT_REPOSITORY https://github.com/libigl/libigl.git
52- GIT_TAG 788871103938ce92112714d11ea491e8e6b4d972
48+ GIT_TAG cf9ed7f492209590c42dc7247281dfdfb6618487
5349)
5450FetchContent_MakeAvailable(libigl)
5551
@@ -125,7 +121,10 @@ function(pyigl_include prefix name)
125121 file (WRITE "${generated_dir} /BINDING_INVOCATIONS.in" "${BINDING_INVOCATIONS} " )
126122
127123 set (target_name "pyigl${prefix_lc} _${name} " )
128- nanobind_add_module(${target_name} ${sources} )
124+ nanobind_add_module(
125+ ${target_name}
126+ STABLE_ABI
127+ ${sources} )
129128
130129 # important for scikit-build
131130 install (TARGETS ${target_name} LIBRARY DESTINATION "igl/${subpath} " )
0 commit comments