blob: 9adb345b6886e4104d0cdbf87526b8be35f619d7 [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>
10---
11 CMakeLists.txt | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
Andrew Geissler9aee5002022-03-30 16:27:02 +000015index fd6e3f0..5383744 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016--- a/CMakeLists.txt
17+++ b/CMakeLists.txt
Andrew Geissler9aee5002022-03-30 16:27:02 +000018@@ -52,7 +52,8 @@ endif()
Brad Bishopc342db32019-05-15 21:57:59 -040019
20 # build dependencies
21 find_package(Gpgme REQUIRED)
22-find_package(LibSolv 0.6.30 REQUIRED COMPONENTS ext)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023+PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv)
24+set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES})
Brad Bishopc342db32019-05-15 21:57:59 -040025
26
Andrew Geissler9aee5002022-03-30 16:27:02 +000027 # build dependencies via pkg-config
28--
292.25.1
30