blob: 643a5f37b6ad1e52d9b1c304a9159a70ce8310c8 [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001From fbb181d25ad85778add7ed45b6aaf114e02d0f79 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>
Andrew Geisslerd5838332022-05-27 11:33:10 -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
Andrew Geisslerd5838332022-05-27 11:33:10 -050016index 405dc4e8..53837448 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
Andrew Geissler9aee5002022-03-30 16:27:02 +000019@@ -52,7 +52,8 @@ endif()
Brad Bishopc342db32019-05-15 21:57:59 -040020
21 # build dependencies
22 find_package(Gpgme REQUIRED)
Andrew Geisslerd5838332022-05-27 11:33:10 -050023-find_package(LibSolv 0.7.21 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
27
Andrew Geissler9aee5002022-03-30 16:27:02 +000028 # build dependencies via pkg-config