build: link whisper target against Threads::Threads for FreeBSD support (#3568)

This commit is contained in:
Russ 2025-12-17 09:13:38 +00:00 committed by GitHub
parent 2551e4ce98
commit 3e79e73eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,7 +125,8 @@ if (WHISPER_EXTRA_FLAGS)
target_compile_options(whisper PRIVATE ${WHISPER_EXTRA_FLAGS})
endif()
target_link_libraries(whisper PUBLIC ggml)
find_package(Threads REQUIRED)
target_link_libraries(whisper PUBLIC ggml Threads::Threads)
if (WHISPER_COREML)
target_link_libraries(whisper PRIVATE whisper.coreml)