mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
Closes: https://bugs.gentoo.org/962945 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43810 Closes: https://github.com/gentoo/gentoo/pull/43810 Signed-off-by: Sam James <sam@gentoo.org>
21 lines
693 B
Diff
21 lines
693 B
Diff
Fix build with boost-1.89.0
|
|
From: https://codeberg.org/shelter/reschroot/issues/33
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 35da3380..fa4b55db 100644
|
|
--- 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)
|