]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake : fix BUILD_SHARED_LIBS=ON build (#7784)
authorintelmatt <redacted>
Fri, 7 Jun 2024 12:15:07 +0000 (05:15 -0700)
committerGitHub <redacted>
Fri, 7 Jun 2024 12:15:07 +0000 (15:15 +0300)
common depends on pthreads in Linux

common/CMakeLists.txt

index 0ec8d6d8d03b5319b7095ab84ccd60cc74ff44a8..171530c91533216c94c1b82f3798e1a69b94a266 100644 (file)
@@ -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)