latest release
This commit is contained in:
parent
ae793c41d7
commit
8e77e9ac64
8 changed files with 39 additions and 1837 deletions
|
|
@ -1,18 +1,37 @@
|
|||
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 @@
|
||||
@@ -1,8 +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)
|
||||
-set (pybind11_git_repo https://github.com/pybind/pybind11.git)
|
||||
-set (pybind11_git_rev v2.10.2)
|
||||
+find_package(pybind11)
|
||||
|
||||
# check if we are called from the top-level ZXing project
|
||||
get_directory_property(hasParent PARENT_DIRECTORY)
|
||||
@@ -21,14 +20,8 @@
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../core ZXing EXCLUDE_FROM_ALL)
|
||||
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/../../zxing.cmake)
|
||||
- zxing_add_package(pybind11 pybind11 ${pybind11_git_repo} ${pybind11_git_rev})
|
||||
else()
|
||||
# we don't have access to the top-level cmake helpers -> simply fetch it unconditional
|
||||
- include(FetchContent)
|
||||
- FetchContent_Declare (pybind11
|
||||
- GIT_REPOSITORY ${pybind11_git_repo}
|
||||
- GIT_TAG ${pybind11_git_rev})
|
||||
- FetchContent_MakeAvailable (pybind11)
|
||||
|
||||
# Building from python source distribution (which does not include the whole repository but only python part)
|
||||
# so we need to get c++ source git to build the python extension. The python distribution version (given in
|
||||
@@ -54,8 +47,6 @@
|
||||
add_subdirectory(${zxing-cpp_SOURCE_DIR}/core ZXing EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
endif()
|
||||
-else()
|
||||
- zxing_add_package(pybind11 pybind11 ${pybind11_git_repo} ${pybind11_git_rev})
|
||||
endif()
|
||||
|
||||
# build the python module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue