From 27615f5ab21060d96953c9c1e223051ab2188f57 Mon Sep 17 00:00:00 2001 From: intelmatt <61025942+intelmatt@users.noreply.github.com> Date: Fri, 7 Jun 2024 05:15:07 -0700 Subject: [PATCH] cmake : fix BUILD_SHARED_LIBS=ON build (#7784) 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)