Skip to content

Commit 3f53f17

Browse files
committed
cmake: raise minimal cmake version to 3.5 and use its features
1 parent 8b64dd9 commit 3f53f17

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
cmake_minimum_required(VERSION 3.2)
2-
cmake_policy(VERSION 3.2)
1+
cmake_minimum_required(VERSION 3.5)
2+
cmake_policy(VERSION 3.5)
33

44
project(qBittorrent VERSION 3.4.0.0)
55

src/base/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
find_package(ZLIB REQUIRED)
2-
include_directories(SYSTEM ${ZLIB_INCLUDE_DIRS})
32

43
set(QBT_BASE_HEADERS
54
bittorrent/cachestatus.h
@@ -113,7 +112,7 @@ tristatebool.cpp
113112
)
114113

115114
add_library(qbt_base STATIC ${QBT_BASE_HEADERS} ${QBT_BASE_SOURCES})
116-
target_link_libraries(qbt_base ${ZLIB_LIBRARIES} LibtorrentRasterbar::LibTorrent)
115+
target_link_libraries(qbt_base ZLIB::ZLIB LibtorrentRasterbar::LibTorrent)
117116
target_link_qt_components(qbt_base Core Network Xml)
118117
if (QT4_FOUND)
119118
if (GUI)

0 commit comments

Comments
 (0)