mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
feat(Core/Deps): require Boost.Thread alongside the other Boost components (#27584)
Co-authored-by: sudlud <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
sudlud
Claude Opus 5
parent
90bccf4fa6
commit
39ffb837d5
Vendored
+8
-1
@@ -32,7 +32,14 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Boost.System is header-only since 1.69; do not require it explicitly.
|
# 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 Boost_FOUND)
|
||||||
if(NOT DEFINED ENV{Boost_ROOT} AND NOT DEFINED Boost_DIR AND NOT DEFINED BOOST_ROOT AND NOT DEFINED BOOSTROOT)
|
if(NOT DEFINED ENV{Boost_ROOT} AND NOT DEFINED Boost_DIR AND NOT DEFINED BOOST_ROOT AND NOT DEFINED BOOSTROOT)
|
||||||
|
|||||||
Reference in New Issue
Block a user