Meta/Lagom: Link Threads::Threads

This is required for me to be able to build both Serenity and
Ladybird from the same repo. Without this the two builds seem to
stomp on each other, then fail to link.
This commit is contained in:
MacDue 2023-01-05 14:47:27 +00:00 committed by Andrew Kaster
parent 98603e2b20
commit b0ac88cf89

View file

@ -54,6 +54,9 @@ endif()
option(BUILD_SHARED_LIBS "Build shared libraries instead of static libraries" ON)
find_package(Threads REQUIRED)
# FIXME: This global link libraries is required to workaround linker issues (on some systems)
# from the Ladybird import. See https://github.com/SerenityOS/serenity/issues/16847
link_libraries(Threads::Threads)
if (ENABLE_LAGOM_CCACHE)
include(setup_ccache)