forked from pool/zxing-cpp
Accepting request 903142 from home:susnux:branches:devel:libraries:c_c++
- Update to 1.2.0 OBS-URL: https://build.opensuse.org/request/show/903142 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zxing-cpp?expand=0&rev=19
This commit is contained in:
20
cmake-check-system-first.patch
Normal file
20
cmake-check-system-first.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff -Nur zxing-cpp-1.2.0/test/blackbox/CMakeLists.txt new/test/blackbox/CMakeLists.txt
|
||||
--- zxing-cpp-1.2.0/test/blackbox/CMakeLists.txt 2021-05-28 12:47:09.000000000 +0200
|
||||
+++ new/test/blackbox/CMakeLists.txt 2021-05-29 13:34:47.707152999 +0200
|
||||
@@ -1,10 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
-include(FetchContent)
|
||||
-FetchContent_Declare (fmtlib
|
||||
+find_package(fmt 7.1.2)
|
||||
+if (NOT fmt_FOUND)
|
||||
+ include(FetchContent)
|
||||
+ FetchContent_Declare (fmtlib
|
||||
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
|
||||
GIT_TAG 7.1.2)
|
||||
-FetchContent_MakeAvailable (fmtlib) # Adds fmt::fmt
|
||||
+ FetchContent_MakeAvailable (fmtlib) # Adds fmt::fmt
|
||||
+endif()
|
||||
|
||||
if (BUILD_READERS)
|
||||
add_executable (ReaderTest
|
||||
Reference in New Issue
Block a user