summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <[email protected]>2017-09-03 11:14:03 +0200
committerPino Toscano <[email protected]>2017-09-03 11:14:03 +0200
commit739c0b399faf5a393c7436c0771662596b840fdc (patch)
treed176a3f945de9a9692358f77445a90d50e40be66
parentf89cfef9716507e01f61c7943225628bc98da896 (diff)
cmake: fix libktorrent stuff
- check for the first version that ships the KF5Torrent module, i.e. 2.1 - use the right FOUND variable - do not try to include a directory called KF5::Torrent
-rw-r--r--CMakeLists.txt4
-rw-r--r--transfer-plugins/bittorrent/CMakeLists.txt1
2 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cb8fe1..30652f9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,8 +74,8 @@ set_package_properties(Qca PROPERTIES DESCRIPTION "Support for encryption"
find_package(Gpgmepp 1.7.0)
set_package_properties(Gpgmepp_FOUND PROPERTIES DESCRIPTION "The GpgME++ library" URL "http://www.gnupg.org" TYPE RECOMMENDED PURPOSE "GpgME++ is required to have signature verifying support in KGet.")
-find_package(KF5Torrent 1.9.50)
-set_package_properties(KF5TORRENT_FOUND PROPERTIES DESCRIPTION "Backend Library of KTorrent" TYPE RECOMMENDED PURPOSE "Needed to build KGet bittorrent support.")
+find_package(KF5Torrent 2.1)
+set_package_properties(KF5Torrent_FOUND PROPERTIES DESCRIPTION "Backend Library of KTorrent" TYPE RECOMMENDED PURPOSE "Needed to build KGet bittorrent support.")
find_package(LibMms QUIET)
set_package_properties(LIBMMS_FOUND PROPERTIES DESCRIPTION "Library to read mms streams" TYPE RECOMMENDED PURPOSE "Needed to build KGet mms support.")
diff --git a/transfer-plugins/bittorrent/CMakeLists.txt b/transfer-plugins/bittorrent/CMakeLists.txt
index 8172801..68a4f34 100644
--- a/transfer-plugins/bittorrent/CMakeLists.txt
+++ b/transfer-plugins/bittorrent/CMakeLists.txt
@@ -5,7 +5,6 @@ kde_enable_exceptions()
include_directories(
../../
- KF5::Torrent
)
set(kget_bittorrentfactory_PART_SRCS
bttransfer.cpp