File: boost1.89.patch

package info (click to toggle)
schroot 1.6.13-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,808 kB
  • sloc: cpp: 21,760; sh: 1,019; ansic: 231; makefile: 77
file content (21 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix build with Boost 1.89
Origin: gentoo, https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bf0b1bad939e60a33d7a8bfdccced10c7550ca3
Bug-Debian: https://bugs.debian.org/1127026
Author: Holger Hoffstätte <holger@applied-asynchrony.com>
Last-Update: 2025-09-16

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,7 +58,11 @@
 
 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)