2023-10-09 13:11:32 +02:00
|
|
|
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
|
2023-08-09 19:56:35 +02:00
|
|
|
@@ -1,4 +1,4 @@
|
2023-10-09 13:11:32 +02:00
|
|
|
-cmake_minimum_required(VERSION 3.15)
|
|
|
|
+cmake_minimum_required(VERSION 3.5)
|
2023-08-09 19:56:35 +02:00
|
|
|
|
|
|
|
project(ZXing)
|
|
|
|
|
2023-10-09 13:11:32 +02:00
|
|
|
@@ -37,9 +37,6 @@
|
2023-08-09 19:56:35 +02:00
|
|
|
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
|
|
endif()
|
|
|
|
|
2023-10-09 13:11:32 +02:00
|
|
|
-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
|
2023-08-09 19:56:35 +02:00
|
|
|
@@ -1,4 +1,4 @@
|
2023-10-09 13:11:32 +02:00
|
|
|
-cmake_minimum_required(VERSION 3.15)
|
|
|
|
+cmake_minimum_required(VERSION 3.5)
|
2023-08-09 19:56:35 +02:00
|
|
|
|
2023-10-09 13:11:32 +02:00
|
|
|
project (ZXing VERSION "2.1.0")
|
2023-08-09 19:56:35 +02:00
|
|
|
set (ZXING_SONAME 3) # see https://github.com/zxing-cpp/zxing-cpp/issues/333
|
2023-10-09 13:11:32 +02:00
|
|
|
@@ -459,8 +459,6 @@
|
2023-08-09 19:56:35 +02:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
-target_compile_features(ZXing PUBLIC cxx_std_17)
|
|
|
|
-
|
|
|
|
target_link_libraries (ZXing PRIVATE Threads::Threads)
|
|
|
|
|
|
|
|
add_library(ZXing::ZXing ALIAS ZXing)
|