Skip to content

Commit 6a127ae

Browse files
rossburtonm-blaha
authored andcommitted
Move libcheck dependency to tests/
If we're not building the tests then there's no point in depending on libcheck, so move the pkg_check_modules() call to tests/CMakeLists.
1 parent 96de933 commit 6a127ae

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ find_package(LibSolv 0.7.21 REQUIRED COMPONENTS ext)
5959

6060

6161
# build dependencies via pkg-config
62-
pkg_check_modules(CHECK REQUIRED check)
6362
pkg_check_modules(GLIB REQUIRED gio-unix-2.0>=2.46.0)
6463
include_directories(${GLIB_INCLUDE_DIRS})
6564
pkg_check_modules(JSONC REQUIRED json-c)

tests/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
pkg_check_modules(CHECK REQUIRED check)
2+
pkg_check_modules(CPPUNIT REQUIRED cppunit)
3+
14
add_subdirectory(libdnf/conf)
25
add_subdirectory(libdnf/module/modulemd)
36
add_subdirectory(libdnf/module)
@@ -7,10 +10,6 @@ add_subdirectory(libdnf/sack)
710
add_subdirectory(hawkey)
811
add_subdirectory(libdnf)
912

10-
11-
12-
pkg_check_modules(CPPUNIT REQUIRED cppunit)
13-
1413
set(LIBDNF_TEST_SOURCES
1514
${LIBDNF_TEST_SOURCES}
1615
${CMAKE_CURRENT_SOURCE_DIR}/run_tests.cpp

0 commit comments

Comments
 (0)