We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d14a8 commit c4fa465Copy full SHA for c4fa465
CMakeLists.txt
@@ -23,11 +23,10 @@ if (WIN32)
23
endif()
24
25
26
-find_package (Python COMPONENTS Interpreter Development REQUIRED)
27
-
28
-if (NOT Python_Development_FOUND)
29
- message(FATAL_ERROR "Python3 include directory not found!")
30
-endif()
+# Try to import all Python components potentially needed by nanobind
+find_package(Python 3.8
+ REQUIRED COMPONENTS Interpreter Development.Module
+ OPTIONAL_COMPONENTS Development.SABIModule)
31
32
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
33
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
0 commit comments