From 41c6836843fc5f0639dc8c915f03817939412fe1 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Mon, 9 Dec 2024 15:30:28 +0100 Subject: [PATCH] [cmake] Fix inconsistent Python finding. See https://pybind11.readthedocs.io/en/stable/faq.html#inconsistent-detection-of-python-version-in-cmake-and-pybind11. --- scripts/cmake/Dependencies.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index 265dffc85a9..74110059503 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -86,6 +86,7 @@ endif() if(GUIX_BUILD) find_package(pybind11 REQUIRED) else() + set(PYBIND11_FINDPYTHON ON) CPMFindPackage( NAME pybind11 GITHUB_REPOSITORY pybind/pybind11 VERSION ${ogs.minimum_version.pybind11} SYSTEM TRUE