From 4f0df7d961a5c85a2ef738b6166094e04df9adf1 Mon Sep 17 00:00:00 2001 From: axxel Date: Mon, 23 Sep 2024 00:04:29 +0200 Subject: [PATCH] cmake: work around CMP0148 warning from pybind11 issue (again!?!) --- wrappers/python/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrappers/python/CMakeLists.txt b/wrappers/python/CMakeLists.txt index 80d21acc02..ffaadbb804 100644 --- a/wrappers/python/CMakeLists.txt +++ b/wrappers/python/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.15) +cmake_minimum_required(VERSION 3.18) project(ZXingPython) # check if we are called from the top-level ZXing project @@ -33,6 +33,7 @@ if (NOT hasParent) endif() find_package(Python3 COMPONENTS Interpreter Development.Module REQUIRED) # see https://github.com/pybind/pybind11/issues/4785 +set(PYBIND11_FINDPYTHON ON) # see https://github.com/pybind/pybind11/issues/4785 zxing_add_package(pybind11 pybind11 https://github.com/pybind/pybind11.git v2.13.6) # build the python module