From 7b722079b50ca99c07468c92a685ccb834dd7663 Mon Sep 17 00:00:00 2001 From: Rickard Bolin Date: Wed, 29 Jan 2025 10:27:40 +0000 Subject: [PATCH] MLBEDSW-10313: Use "New" Python mode in pybind11 Updating pybind11 to the newest version changed our build to use the "Classic" pybind11 Python mode. Set PYBIND11_FINDPYTHON ON to use the "New" Python mode, which was used before the update. Change-Id: Ia54ef7363dba259778151de920e11959484580a0 Signed-off-by: Rickard Bolin --- ethosu/regor/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/ethosu/regor/CMakeLists.txt b/ethosu/regor/CMakeLists.txt index 08d32514..8b2c57c3 100644 --- a/ethosu/regor/CMakeLists.txt +++ b/ethosu/regor/CMakeLists.txt @@ -215,6 +215,7 @@ include(regor_dependencies) find_package(Threads REQUIRED) if (REGOR_PYTHON_BINDINGS_DESTINATION AND NOT TARGET pybind11::module) + set(PYBIND11_FINDPYTHON ON) regor_add_dependency(dependencies/thirdparty/pybind11) endif() -- GitLab