Преглед изворни кода

common: Publically link to pthreads

Common requires pthreads but does not refer to it when linking to other
modules. Fix this by linking to Threads where necessary.
lat9nq пре 5 година
родитељ
комит
eb61824ea5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/common/CMakeLists.txt

+ 1 - 1
src/common/CMakeLists.txt

@@ -231,7 +231,7 @@ endif()
 
 create_target_directory_groups(common)
 
-target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile)
+target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
 target_link_libraries(common PRIVATE lz4::lz4 xbyak)
 if (MSVC)
   target_link_libraries(common PRIVATE zstd::zstd)