summaryrefslogtreecommitdiff
path: root/zxing-cpp-1.2.0-system-pybind11.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-13 11:01:54 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-13 11:01:54 +0000
commit37369853c01c77b8dd73a1bfd558c04da9d1b56d (patch)
tree796db1bf4adfb7ba9ef1e5236504ab00f5e7cddf /zxing-cpp-1.2.0-system-pybind11.patch
parent9f817a58d7073dca2818435a78a59fdbf6509f53 (diff)
automatic import of zxing-cpp
Diffstat (limited to 'zxing-cpp-1.2.0-system-pybind11.patch')
-rw-r--r--zxing-cpp-1.2.0-system-pybind11.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/zxing-cpp-1.2.0-system-pybind11.patch b/zxing-cpp-1.2.0-system-pybind11.patch
new file mode 100644
index 0000000..849b13d
--- /dev/null
+++ b/zxing-cpp-1.2.0-system-pybind11.patch
@@ -0,0 +1,18 @@
+diff -Naur zxing-cpp-1.2.0-original/wrappers/python/CMakeLists.txt zxing-cpp-1.2.0/wrappers/python/CMakeLists.txt
+--- zxing-cpp-1.2.0-original/wrappers/python/CMakeLists.txt 2021-05-28 06:47:09.000000000 -0400
++++ zxing-cpp-1.2.0/wrappers/python/CMakeLists.txt 2021-12-13 20:31:22.286170793 -0500
+@@ -1,13 +1,7 @@
+ cmake_minimum_required(VERSION 3.14)
+ project(ZXingPython)
+
+-# get pybind11
+-include(FetchContent)
+-#set(FETCHCONTENT_QUIET Off)
+-FetchContent_Declare (pybind11
+- GIT_REPOSITORY https://github.com/pybind/pybind11.git
+- GIT_TAG v2.6.2)
+-FetchContent_MakeAvailable (pybind11)
++find_package(pybind11)
+
+ # check if we are called from the top-level ZXing project
+ get_directory_property(hasParent PARENT_DIRECTORY)