From b0ac88cf890a234606316d2d137355129ac76c1b Mon Sep 17 00:00:00 2001 From: MacDue Date: Thu, 5 Jan 2023 14:47:27 +0000 Subject: [PATCH] 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. --- Meta/Lagom/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 3082f38d83..152981f46f 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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)