aboutsummaryrefslogtreecommitdiff
path: root/depends/patches/qrencode/cmake_fixups.patch
blob: 7518d756cb28fc3bdb5a0b373a3a6462fafb3c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake: set minimum version to 3.5

Correct some dev warning output.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 773e037..a558145 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1.0)
+cmake_minimum_required(VERSION 3.5)
 
 project(QRencode VERSION 4.1.1 LANGUAGES C)
 
@@ -20,7 +20,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 set(CMAKE_THREAD_PREFER_PTHREAD ON)
 find_package(Threads)
 find_package(PNG)
-find_package(Iconv)
+find_package(ICONV)
 
 if(CMAKE_USE_PTHREADS_INIT)
     add_definitions(-DHAVE_LIBPTHREAD=1)