diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e1ef8e5aa8..e9e75b6070 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -18,6 +18,8 @@ target_include_directories(librpm PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${Intl_INCLUDE_DIRS} ) +# This is needed for rpmcli.h +target_include_directories(librpm PUBLIC ${POPT_INCLUDE_DIRS}) target_sources(librpm PRIVATE backend/dbi.c backend/dbi.h backend/dummydb.c