From 6d6af8e70d5c64bc6016ccd501c95265b3ab3db9 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Wed, 9 Jan 2019 15:09:36 +0300 Subject: [PATCH] CMake: Check for required libtorrent version --- CMakeLists.txt | 1 + src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 012605d47..86b2fdd46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ include(FeatureSummary) set(requiredBoostVersion 1.35) set(requiredQtVersion 5.5.1) set(requiredOpensslVersion 1.0) +set(requiredLibtorrentVersion 1.1.10) if(WIN32) include(winconf) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eb746d6c5..51b81e60c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,7 +15,7 @@ qbt_set_compiler_options() include(QbtTargetSources) find_package(Boost ${requiredBoostVersion} REQUIRED) -find_package(LibtorrentRasterbar REQUIRED) +find_package(LibtorrentRasterbar ${requiredLibtorrentVersion} REQUIRED) find_package(OpenSSL ${requiredOpensslVersion} REQUIRED) if (Boost_VERSION VERSION_LESS 106000)