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 c42d35f commit 47f10f7Copy full SHA for 47f10f7
CMakeLists.txt
@@ -46,10 +46,7 @@ else()
46
message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
47
endif()
48
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(Python COMPONENTS Interpreter REQUIRED)
53
54
set(pybind11_REQUIRED_VERSION 2.6.1)
55
if(TARGET pybind11 OR TARGET pybind11::headers)
0 commit comments