Skip to content

Commit 27615f5

Browse files
authored
cmake : fix BUILD_SHARED_LIBS=ON build (ggml-org#7784)
common depends on pthreads in Linux
1 parent 7027b27 commit 27615f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ endif ()
8484

8585
target_include_directories(${TARGET} PUBLIC .)
8686
target_compile_features(${TARGET} PUBLIC cxx_std_11)
87-
target_link_libraries(${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama)
87+
target_link_libraries(${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama Threads::Threads)

0 commit comments

Comments
 (0)