fix: link libquota on NetBSD to fix FTBFS (#4863)

This commit is contained in:
Thomas Klausner 2023-02-13 19:04:14 +01:00 committed by GitHub
parent 25b50a7dff
commit 62a60b4ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -708,6 +708,11 @@ if(HAVE_LIBM)
set(LIBM_LIBRARY m)
endif()
check_library_exists(quota quotacursor_skipidtype "" HAVE_LIBQUOTA)
if(HAVE_LIBQUOTA)
set(LIBQUOTA_LIBRARY quota)
endif()
set(TR_NETWORK_LIBRARIES)
if(WIN32)
list(APPEND TR_NETWORK_LIBRARIES iphlpapi ws2_32)

View File

@ -279,6 +279,7 @@ target_link_libraries(${TR_NAME}
libb64::libb64
${LIBINTL_LIBRARY}
${LIBM_LIBRARY}
${LIBQUOTA_LIBRARY}
${TR_NETWORK_LIBRARIES}
jsonsl
utf8::cpp