File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/getting_started/pybind11 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.15...3.26)
22project (${SKBUILD_PROJECT_NAME} LANGUAGES CXX)
33
4- set (PYBIND11_NEWPYTHON ON )
4+ set (PYBIND11_FINDPYTHON ON )
55find_package (pybind11 CONFIG REQUIRED)
66
77pybind11_add_module(example example.cpp)
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ CMake from searching for both `C` and `CXX` compilers (the default).
268268
269269If you place find Python first, pybind11 will respect it instead of the classic
270270FindPythonInterp/FindPythonLibs mechanisms, which work, but are not as modern.
271- Here we set `PYBIND11_NEWPYTHON ` to `ON` instead of doing the find Python
271+ Here we set `PYBIND11_FINDPYTHON ` to `ON` instead of doing the find Python
272272ourselves. Pybind11 places its config file such that CMake can find it from
273273site-packages.
274274
You can’t perform that action at this time.
0 commit comments