Commit c0ab6e5c0 for llama.cpp

commit c0ab6e5c0bab3fb21e6cb9d2371f3c41d85ea775
Author: Adrien Gallouët <angt@huggingface.co>
Date:   Sat Nov 7 07:43:50 2026 +0100

    llama : add missing link to pthread (#31785)

    * llama : add missing link to pthread

    Signed-off-by: Adrien Gallouët <angt@huggingface.co>

    * Link Threads::Threads privately

    Signed-off-by: Adrien Gallouët <angt@huggingface.co>

    ---------

    Signed-off-by: Adrien Gallouët <angt@huggingface.co>

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 97250c2e8..426c48741 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -69,7 +69,8 @@ target_include_directories(llama PRIVATE . ${CMAKE_CURRENT_BINARY_DIR})
 target_include_directories(llama PUBLIC ../include)
 target_compile_features   (llama PRIVATE cxx_std_17) # don't bump

-target_link_libraries(llama PUBLIC ggml)
+find_package(Threads REQUIRED)
+target_link_libraries(llama PUBLIC ggml PRIVATE Threads::Threads)

 if (BUILD_SHARED_LIBS)
     set_target_properties(llama PROPERTIES POSITION_INDEPENDENT_CODE ON)