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.
This commit is contained in:
lat9nq 2021-07-23 02:43:50 -04:00
parent f7454fabb3
commit 0ea70212af

View file

@ -231,7 +231,7 @@ endif()
create_target_directory_groups(common) 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) target_link_libraries(common PRIVATE lz4::lz4 xbyak)
if (MSVC) if (MSVC)
target_link_libraries(common PRIVATE zstd::zstd) target_link_libraries(common PRIVATE zstd::zstd)