zxing-cpp/cmake.patch
Dirk Mueller 8527d9a225 Accepting request 1115985 from home:polslinux:branches:devel:libraries:c_c++
- Update to 2.1.0:
  * Considerable performance improvements in linear symbol detection (up to 2x speedup in select use cases of ReadBarcodes)
  * QRCode: major improvement in detection of high version symbols (see e.g. here)
  * DMDetector: reduce runtime overhead of c++-20 builds 
  * Refactor Python wrapper so the sdist includes the core library code 
  * wasm wrapper: add function to reader to scan multiple barcode 
  * Added a C wrapper
  * Python: improve error reporting
  * DMDetector: fix potential dead-lock
  * DMDecoder: support 144x144 symbols in legacy and compliant variants
- Remove the %check section since we are not building the tests.

OBS-URL: https://build.opensuse.org/request/show/1115985
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=33
2023-10-09 11:11:32 +00:00

38 lines
1.1 KiB
Diff

diff -ru orig/CMakeLists.txt mod/CMakeLists.txt
--- orig/CMakeLists.txt 2023-07-05 18:25:57.000000000 +0200
+++ mod/CMakeLists.txt 2023-10-06 08:29:27.429624816 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.15)
+cmake_minimum_required(VERSION 3.5)
project(ZXing)
@@ -37,9 +37,6 @@
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
-if (NOT CMAKE_CXX_STANDARD)
- set (CMAKE_CXX_STANDARD 17)
-endif()
if (NOT CMAKE_CXX_EXTENSIONS)
set (CMAKE_CXX_EXTENSIONS OFF)
endif()
diff -ru orig/core/CMakeLists.txt mod/core/CMakeLists.txt
--- orig/core/CMakeLists.txt 2023-07-05 18:25:57.000000000 +0200
+++ mod/core/CMakeLists.txt 2023-10-06 08:29:35.169666650 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.15)
+cmake_minimum_required(VERSION 3.5)
project (ZXing VERSION "2.1.0")
set (ZXING_SONAME 3) # see https://github.com/zxing-cpp/zxing-cpp/issues/333
@@ -459,8 +459,6 @@
)
endif()
-target_compile_features(ZXing PUBLIC cxx_std_17)
-
target_link_libraries (ZXing PRIVATE Threads::Threads)
add_library(ZXing::ZXing ALIAS ZXing)