From 32a5a118f0301e84de3fc2a725632255ac05a595 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 23 Jan 2024 23:09:24 +0100 Subject: [PATCH] Use pybind11's new mode to work around CMP0148 related dev warning. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a42d77976..b790af575 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ FetchContent_Declare( GIT_REPOSITORY https://github.com/pybind/pybind11.git GIT_TAG v2.11.1 ) +set(PYBIND11_FINDPYTHON ON) FetchContent_MakeAvailable(pybind11-src) endif()