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 a54eab9 commit dc0d4e3Copy full SHA for dc0d4e3
tools/pybind11Tools.cmake
@@ -13,7 +13,12 @@ if(NOT PYBIND11_PYTHON_VERSION)
13
endif()
14
15
set(Python_ADDITIONAL_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4)
16
-find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} REQUIRED)
+# this minimum was determined by testing, and could potentially be made lower
17
+if(CMAKE_VERSION VERSION_LESS 3.10.2)
18
+ find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} REQUIRED)
19
+else()
20
+ find_package(PythonLibs ${PYBIND11_PYTHON_VERSION} REQUIRED)
21
+endif()
22
23
include(CheckCXXCompilerFlag)
24
include(CMakeParseArguments)
0 commit comments