From f3b41c606f63ceab96c15daab2e5494e1b70824c Mon Sep 17 00:00:00 2001 From: agoshigagoroba Date: Wed, 19 Aug 2026 18:09:58 -0300 Subject: [PATCH] Drop the Boost::system component Boost.System is header-only since Boost 1.69 and the compiled library was dropped altogether in recent releases, so requiring the `system` component makes FIND_PACKAGE fail at configure time on current distributions (reproduced with Boost 1.91). Linking Boost::filesystem and Boost::thread pulls in everything that was previously taken from Boost::system. Co-Authored-By: Claude Opus 5 (1M context) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fa1eb15..82b413eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ include_directories(${SDL2_TTF_DIRS}) FIND_PACKAGE(SDL2_gfx REQUIRED) include_directories(${SDL2_GFX_DIRS}) -FIND_PACKAGE(Boost REQUIRED COMPONENTS system thread filesystem) +FIND_PACKAGE(Boost REQUIRED COMPONENTS thread filesystem) include_directories(${Boost_INCLUDE_DIR}) FIND_PACKAGE(OpenAL REQUIRED) @@ -98,7 +98,7 @@ add_library(menulib ${MENU_SOURCES} ${MENU_HEADERS}) add_library(datalib ${DATA_SOURCES} ${DATA_HEADERS}) set(LIBRARIES gamelib hidlib menulib datalib leaguelib blunted2 - Boost::filesystem Boost::system Boost::thread SQLite::SQLite3 + Boost::filesystem Boost::thread SQLite::SQLite3 ${SDL2_IMAGE_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2_GFX_LIBRARIES} ${SDL2_LIBRARIES} ${OPENAL_LIBRARY} dl m ${OPENGL_LIBRARIES})