build: add private link to simdutf static to pkgconfig

This commit is contained in:
Adrien Béraud committed 2026-01-27 14:45:07 -05:00
1 parent 1105a68f93
commit ea6ca025fc
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -138,6 +138,9 @@ if (NOT MSVC)
)
FetchContent_MakeAvailable(simdutf)
set(SIMDUTF_LIBRARIES simdutf::simdutf)
if (NOT BUILD_SHARED_LIBS)
set(simdutf_libfile " ${simdutf_BINARY_DIR}/build/libsimdutf.a")
endif()
else()
message(SEND_ERROR "simdutf not found and the fallback downloader is not set! Install simdutf or use OPENDHT_DOWNLOAD_DEPS option")
endif()
+1 -1
View File
@@ -6,7 +6,7 @@ Name: OpenDHT
Description: C++17 Distributed Hash Table library
Version: @VERSION@
Libs: -L${libdir} -lopendht -lfmt
Libs.private: @http_lib@ -pthread
Libs.private: @http_lib@ @simdutf_libfile@ -pthread
Requires: gnutls >= 3.3@jsoncpp_lib@@openssl_lib@
Requires.private: nettle >= 2.4@argon2_lib@@llhttp_lib@@iouring_lib@@simdutf_lib@
Cflags: -I${includedir}