build: Fix BUILD_SHARED_LIBS=ON build

common depends on pthreads in Linux
This commit is contained in:
intelmatt 2024-06-05 16:29:15 -07:00 committed by GitHub
parent 7672adeec7
commit 8641ae1f5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,4 +84,4 @@ endif ()
target_include_directories(${TARGET} PUBLIC .) target_include_directories(${TARGET} PUBLIC .)
target_compile_features(${TARGET} PUBLIC cxx_std_11) 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)