From 8641ae1f5ab78bd3cd21f59f2b968f3d033d14f0 Mon Sep 17 00:00:00 2001 From: intelmatt <61025942+intelmatt@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:29:15 -0700 Subject: [PATCH] build: Fix BUILD_SHARED_LIBS=ON build common depends on pthreads in Linux --- common/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 0ec8d6d8d..171530c91 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -84,4 +84,4 @@ endif () target_include_directories(${TARGET} PUBLIC .) target_compile_features(${TARGET} PUBLIC cxx_std_11) -target_link_libraries(${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama) +target_link_libraries(${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama Threads::Threads)