Explorar o código

cmake : fix BUILD_SHARED_LIBS=ON build (#7784)

common depends on pthreads in Linux
intelmatt hai 1 ano
pai
achega
27615f5ab2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/CMakeLists.txt

+ 1 - 1
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)