]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
build: link whisper target against Threads::Threads for FreeBSD support (#3568)
authorRuss <redacted>
Wed, 17 Dec 2025 09:13:38 +0000 (09:13 +0000)
committerGitHub <redacted>
Wed, 17 Dec 2025 09:13:38 +0000 (11:13 +0200)
src/CMakeLists.txt

index 2eae0c66c78f36354f9620dc3416fa62298f7d6d..6030072dbd88c7de08733f4c35cce38c3ec1435a 100644 (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)