Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libdnf: support for removing libcheck dependencies #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 5fadf5e07efcb30d9ea2bbeab6f2c92be441591d Mon Sep 17 00:00:00 2001
From: Yanlin Du <[email protected]>
Date: Thu, 19 Sep 2019 10:51:58 +0800
Subject: [PATCH] libdnf: support for removing libcheck dependencies

libcheck could be removed, when WITH_TESTS is turned on.

Signed-off-by: Yanlin Du <[email protected]>

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6df91e1..8c05eed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,9 @@ find_package(OpenSSL REQUIRED)


# build dependencies via pkg-config
+IF (WITH_TESTS)
pkg_check_modules(CHECK REQUIRED check)
+ENDIF()
pkg_check_modules(GLIB REQUIRED gio-unix-2.0>=2.46.0)
include_directories(${GLIB_INCLUDE_DIRS})
pkg_check_modules(JSONC REQUIRED json-c)
--
1.8.5.6