We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1cbae commit 4be9abeCopy full SHA for 4be9abe
CMakeLists.txt
@@ -57,8 +57,14 @@ endif()
57
if (NOT TARGET Python::Module OR NOT TARGET Python::Interpreter)
58
set(Python_FIND_FRAMEWORK LAST) # Prefer Brew/Conda to Apple framework python
59
60
+ if (CMAKE_VERSION VERSION_LESS 3.18)
61
+ set(NB_PYTHON_DEV_MODULE Development)
62
+ else()
63
+ set(NB_PYTHON_DEV_MODULE Development.Module)
64
+ endif()
65
+
66
find_package(Python 3.8
- REQUIRED COMPONENTS Interpreter Development.Module
67
+ REQUIRED COMPONENTS Interpreter ${NB_PYTHON_DEV_MODULE}
68
OPTIONAL_COMPONENTS Development.SABIModule)
69
endif()
70
0 commit comments