From 39ffb837d5d169490c9a09eba466e481fc459e5a Mon Sep 17 00:00:00 2001 From: Keleborn <22352763+Celandriel@users.noreply.github.com> Date: Fri, 11 Sep 2026 12:42:11 -0700 Subject: [PATCH] feat(Core/Deps): require Boost.Thread alongside the other Boost components (#27584) Co-authored-by: sudlud Co-authored-by: Claude Opus 5 (1M context) --- deps/boost/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deps/boost/CMakeLists.txt b/deps/boost/CMakeLists.txt index c41ce041a3..5c8f27a19e 100644 --- a/deps/boost/CMakeLists.txt +++ b/deps/boost/CMakeLists.txt @@ -32,7 +32,14 @@ else() endif() # Boost.System is header-only since 1.69; do not require it explicitly. -find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED COMPONENTS filesystem program_options iostreams regex) +set(BOOST_COMPONENTS filesystem program_options iostreams regex) + +GetModuleSourceList(AC_MODULES_PRESENT) +if(BUILD_APPLICATION_WORLDSERVER AND AC_MODULES_PRESENT) + list(APPEND BOOST_COMPONENTS thread) +endif() + +find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED COMPONENTS ${BOOST_COMPONENTS}) if(NOT Boost_FOUND) if(NOT DEFINED ENV{Boost_ROOT} AND NOT DEFINED Boost_DIR AND NOT DEFINED BOOST_ROOT AND NOT DEFINED BOOSTROOT)