Files
packages/admin/schroot/patches/040-boost-189.patch
Rosen Penev ffbb8ff708 schroot: fix compilation with boost 1.89
Patch taken from reschroot.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-10-17 01:39:39 +08:00

16 lines
532 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,11 @@ find_package(Threads REQUIRED)
include(FindBoost)
find_package(Boost REQUIRED
- COMPONENTS filesystem system iostreams program_options regex)
+ COMPONENTS filesystem iostreams program_options regex)
+if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
+ list(APPEND BOOST_REQUIRED_COMPONENTS system)
+ find_package(Boost REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
+endif()
# HEADER CHECKS
include(CheckIncludeFileCXX)