From 41a63718c95c6c0c557173fdaeb77adddb13157d Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Thu, 20 Apr 2017 15:15:35 +0200 Subject: [PATCH] cmake: use import libraries for Boost and OpenSSL in Libtorrent find module --- cmake/Modules/FindLibtorrentRasterbar.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/Modules/FindLibtorrentRasterbar.cmake b/cmake/Modules/FindLibtorrentRasterbar.cmake index dbdc5984a..8719b5662 100644 --- a/cmake/Modules/FindLibtorrentRasterbar.cmake +++ b/cmake/Modules/FindLibtorrentRasterbar.cmake @@ -93,13 +93,12 @@ foreach(_boost_cmpnt IN LISTS _boost_components) list(APPEND LibtorrentRasterbar_LIBRARIES "Boost::${_boost_cmpnt}") endforeach(_boost_cmpnt) -set(LibtorrentRasterbar_INCLUDE_DIRS ${LibtorrentRasterbar_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) +set(LibtorrentRasterbar_INCLUDE_DIRS ${LibtorrentRasterbar_INCLUDE_DIRS}) list(FIND LibtorrentRasterbar_DEFINITIONS -DTORRENT_USE_OPENSSL LibtorrentRasterbar_ENCRYPTION_INDEX) if(LibtorrentRasterbar_ENCRYPTION_INDEX GREATER -1) find_package(OpenSSL REQUIRED) - set(LibtorrentRasterbar_LIBRARIES ${LibtorrentRasterbar_LIBRARIES} ${OPENSSL_LIBRARIES}) - set(LibtorrentRasterbar_INCLUDE_DIRS ${LibtorrentRasterbar_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS}) + set(LibtorrentRasterbar_LIBRARIES ${LibtorrentRasterbar_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto) set(LibtorrentRasterbar_OPENSSL_ENABLED ON) endif()