blob: 475c8f120ba52c241b881941bdf9b195e45777ca [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001From 18c2c06017784cd641cc8a3deee5fc472008f7f4 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Dec 2016 18:24:50 +0200
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] Set libsolv variables with pkg-config (cmake's own module
Brad Bishop316dfdd2018-06-25 12:45:53 -04005
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006 doesn't work properly).
7
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/312]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050010
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011---
12 CMakeLists.txt | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
Brad Bishopc342db32019-05-15 21:57:59 -040016index 16b63308..b722d4fb 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
Brad Bishopc342db32019-05-15 21:57:59 -040019@@ -45,7 +45,8 @@ endif()
20
21 # build dependencies
22 find_package(Gpgme REQUIRED)
23-find_package(LibSolv 0.6.30 REQUIRED COMPONENTS ext)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024+PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv)
25+set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES})
Brad Bishopc342db32019-05-15 21:57:59 -040026 find_package(OpenSSL REQUIRED)
27
28