1From fbb181d25ad85778add7ed45b6aaf114e02d0f79 Mon Sep 17 00:00:00 2001 2From: Alexander Kanavin <alex.kanavin@gmail.com> 3Date: Fri, 30 Dec 2016 18:24:50 +0200 4Subject: [PATCH] Set libsolv variables with pkg-config (cmake's own module 5 6 doesn't work properly). 7 8Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/312] 9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 10 11--- 12 CMakeLists.txt | 3 ++- 13 1 file changed, 2 insertions(+), 1 deletion(-) 14 15diff --git a/CMakeLists.txt b/CMakeLists.txt 16index 405dc4e8..53837448 100644 17--- a/CMakeLists.txt 18+++ b/CMakeLists.txt 19@@ -52,7 +52,8 @@ endif() 20 21 # build dependencies 22 find_package(Gpgme REQUIRED) 23-find_package(LibSolv 0.7.21 REQUIRED COMPONENTS ext) 24+PKG_CHECK_MODULES (LIBSOLV REQUIRED libsolv) 25+set(LIBSOLV_LIBRARY ${LIBSOLV_LIBRARIES}) 26 27 28 # build dependencies via pkg-config 29