Skip to content

Commit

Permalink
libdnf: Add include directories and LDFLAGS from librepo
Browse files Browse the repository at this point in the history
It's not possible to build the project when the librepo is
built in a non-standard prefix, especially when no other
project is build with that custom prefix.

Using the returned include directories and whole LDFLAGS
fixes it.
  • Loading branch information
mcrha authored and m-blaha committed Feb 6, 2023
1 parent eda6a9b commit 3388f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libdnf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ target_link_libraries(libdnf ${GLIB2_LIBRARIES})

pkg_check_modules(LIBREPO REQUIRED librepo>=1.15.0)
list(APPEND LIBDNF5_PC_REQUIRES "${LIBREPO_MODULE_NAME}")
target_link_libraries(libdnf ${LIBREPO_LIBRARIES})
target_include_directories(libdnf PRIVATE ${LIBREPO_INCLUDE_DIRS})
target_link_libraries(libdnf ${LIBREPO_LDFLAGS})

# SQLite3
pkg_check_modules(SQLite3 REQUIRED sqlite3)
Expand Down

0 comments on commit 3388f6f

Please sign in to comment.