Skip to content

Commit 1cfb16f

Browse files
Ionickontura
authored andcommitted
build: also use static libcheck variables if defined
In Ubuntu and Debian, only the static libcheck library is shipped. Reference the relevant build flags. If not defined CMake will simply ignore them, so should not affect other distros.
1 parent 43fc929 commit 1cfb16f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/hawkey/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ set_target_properties(test_hawkey_main PROPERTIES COMPILE_FLAGS -fPIC)
2929
target_link_libraries(test_hawkey_main
3030
libdnf
3131
${CHECK_LDFLAGS}
32+
${CHECK_STATIC_LIBRARIES}
33+
${CHECK_STATIC_LDFLAGS}
3234
${SOLV_LIBRARY}
3335
${SOLVEXT_LIBRARY}
3436
${RPMDB_LIBRARY}

0 commit comments

Comments
 (0)