https://bugs.gentoo.org/889266 https://gitlab.freedesktop.org/libbsd/libbsd/-/issues/15 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -538,10 +538,10 @@ else() if(HAVE_LIBBSD_ARC4RANDOM_BUF) list(APPEND MINIZIP_DEF -DHAVE_LIBBSD -DHAVE_ARC4RANDOM_BUF) - list(APPEND MINIZIP_INC ${LIBBSD_INCLUDE_DIRS}) list(APPEND MINIZIP_LIB ${LIBBSD_LIBRARIES}) list(APPEND MINIZIP_LBD ${LIBBSD_LIBRARY_DIRS}) + add_compile_options(${LIBBSD_CFLAGS}) link_directories(${LIBBSD_LIBRARY_DIRS}) endif() else()