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 a7288ce commit 71f25cdCopy full SHA for 71f25cd
CMakeLists.txt
@@ -49,7 +49,9 @@ endif()
49
# Running find_package(PythonInterp) to retrieve the Python version
50
# which is not exported by Pybind11's cmake.
51
# Cf. https://github.com/pybind/pybind11/issues/2268
52
-find_package(PythonInterp ${PythonLibsNew_FIND_VERSION} REQUIRED)
+#find_package(PythonInterp ${PythonLibsNew_FIND_VERSION} REQUIRED)
53
+# the above line uses a deprecated cmake method, use the following instead
54
+find_package(Python COMPONENTS Interpreter REQUIRED)
55
56
set(pybind11_REQUIRED_VERSION 2.6.1)
57
if(TARGET pybind11 OR TARGET pybind11::headers)
0 commit comments