forked from pool/zxing-cpp
Jan Engelhardt
f4c4811a30
Clean up and fix build on SLE15SP5 OBS-URL: https://build.opensuse.org/request/show/1103183 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=31
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
--- zxing-cpp-2.0.0/CMakeLists.txt 2023-08-08 13:26:51.918694430 +0200
|
|
+++ zxing-cpp-2.0.0/CMakeLists.txt 2023-08-08 13:38:00.669700216 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-cmake_minimum_required (VERSION 3.14)
|
|
+cmake_minimum_required (VERSION 3.5)
|
|
|
|
project(ZXing)
|
|
|
|
@@ -42,8 +42,7 @@
|
|
set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
endif()
|
|
|
|
-set (CMAKE_CXX_STANDARD 17)
|
|
-set (CMAKE_CXX_EXTENSIONS OFF)
|
|
+set (CMAKE_CXX_EXTENSIONS ON)
|
|
|
|
if (NOT (BUILD_READERS OR BUILD_WRITERS))
|
|
message(FATAL_ERROR "At least one of BUILD_READERS/BUILD_WRITERS must be enabled.")
|
|
--- zxing-cpp-2.0.0/core/CMakeLists.txt 2023-08-08 13:26:51.918694430 +0200
|
|
+++ zxing-cpp-2.0.0/core/CMakeLists.txt 2023-08-08 13:32:23.494204854 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-cmake_minimum_required (VERSION 3.14)
|
|
+cmake_minimum_required (VERSION 3.5)
|
|
|
|
project (ZXing VERSION "2.0.0")
|
|
set (ZXING_SONAME 3) # see https://github.com/zxing-cpp/zxing-cpp/issues/333
|
|
@@ -457,8 +457,6 @@
|
|
)
|
|
endif()
|
|
|
|
-target_compile_features(ZXing PUBLIC cxx_std_17)
|
|
-
|
|
target_link_libraries (ZXing PRIVATE Threads::Threads)
|
|
|
|
add_library(ZXing::ZXing ALIAS ZXing)
|