Skip to content

Commit

Permalink
cmake: work around CMP0148 warning from pybind11 issue (again!?!)
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Sep 22, 2024
1 parent 93c25c9 commit 4f0df7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4f0df7d

Please sign in to comment.