Skip to content

Update Boost to 1.84.0, 1.85.0 and 1.86.0 #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if(MINGW)
# https://github.com/boostorg/build/issues/301
hunter_default_version(Boost VERSION 1.64.0)
else()
hunter_default_version(Boost VERSION 1.83.0)
hunter_default_version(Boost VERSION 1.86.0)
endif()

hunter_default_version(BoostCompute VERSION 0.5-p0)
Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/hunter_get_boost_libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function(hunter_get_boost_libs)
# DOCUMENTATION_START {
hunter_append_component(${common_args} COMPONENT atomic SINCE 1.53.0)
hunter_append_component(${common_args} COMPONENT chrono SINCE 1.47.0)
hunter_append_component(${common_args} COMPONENT charconv SINCE 1.85.0)
hunter_append_component(${common_args} COMPONENT cobalt SINCE 1.84.0)
hunter_append_component(${common_args} COMPONENT container SINCE 1.56.0)
hunter_append_component(${common_args} COMPONENT context SINCE 1.51.0)
hunter_append_component(${common_args} COMPONENT contract SINCE 1.67.0)
Expand All @@ -72,6 +74,8 @@ function(hunter_get_boost_libs)
hunter_append_component(${common_args} COMPONENT metaparse SINCE 1.61.0 UNTIL 1.66.0)
hunter_append_component(${common_args} COMPONENT mpi SINCE 1.35.0)
hunter_append_component(${common_args} COMPONENT nowide SINCE 1.74.0)
hunter_append_component(${common_args} COMPONENT predef SINCE 1.86.0) # is listed as a lib since 1.86.0, but can not be built as one
hunter_append_component(${common_args} COMPONENT process SINCE 1.86.0) # was header only until 1.86.0
hunter_append_component(${common_args} COMPONENT program_options SINCE 1.32.0)
hunter_append_component(${common_args} COMPONENT python SINCE 1.19.0)
hunter_append_component(${common_args} COMPONENT random SINCE 1.15.0)
Expand Down
22 changes: 22 additions & 0 deletions cmake/projects/Boost/charconv/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2013, Ruslan Baratov

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update copyright

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is created by a script

# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_download)
include(hunter_pick_scheme)

hunter_pick_scheme(
DEFAULT
url_sha1_boost_library
IPHONEOS
url_sha1_boost_ios_library
)

hunter_download(
PACKAGE_NAME
Boost
PACKAGE_COMPONENT
charconv
PACKAGE_INTERNAL_DEPS_ID "50"
)
77 changes: 71 additions & 6 deletions cmake/projects/Boost/ci/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,32 @@
{ "example": "Boost-chrono-useBoostConfig", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-chrono-useBoostConfig", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

// { "example": "Boost-charconv", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-charconv", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-charconv", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-charconv", "toolchain": "gcc-9-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-charconv", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-charconv", "toolchain": "osx-12-3-arch-universal2-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-charconv", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-charconv", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-charconv", "toolchain": "nmake-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-charconv", "toolchain": "vs-16-2019-win64-sdk-10-0-18362-0-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-charconv", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-charconv", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

{ "example": "Boost-cobalt", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-cobalt", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-cobalt", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-cobalt", "toolchain": "gcc-9-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-cobalt", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-cobalt", "toolchain": "osx-12-3-arch-universal2-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-cobalt", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-cobalt", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-cobalt", "toolchain": "nmake-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-cobalt", "toolchain": "vs-16-2019-win64-sdk-10-0-18362-0-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-cobalt", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-cobalt", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

// { "example": "Boost-container", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-container", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-container", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
Expand Down Expand Up @@ -141,18 +167,44 @@
{ "example": "Boost-math", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-math", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

{ "example": "Boost-process", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-predef", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-predef", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-predef", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-predef", "toolchain": "gcc-9-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-predef", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-predef", "toolchain": "osx-12-3-arch-universal2-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-predef", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-predef", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-predef", "toolchain": "nmake-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-predef", "toolchain": "vs-16-2019-win64-sdk-10-0-18362-0-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-predef", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-predef", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

//{ "example": "Boost-process", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-process", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-process", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-process", "toolchain": "gcc-9-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-process", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-process", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-process", "toolchain": "osx-12-3-arch-universal2-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-process", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-process", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-process", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-process", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-process", "toolchain": "nmake-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-process", "toolchain": "vs-16-2019-win64-sdk-10-0-18362-0-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-process", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-process", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-process", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-process", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

{ "example": "BoostProcess", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "BoostProcess", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "BoostProcess", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "BoostProcess", "toolchain": "gcc-9-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "BoostProcess", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "BoostProcess", "toolchain": "osx-12-3-arch-universal2-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
{ "example": "BoostProcess", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
{ "example": "BoostProcess", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "BoostProcess", "toolchain": "nmake-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "BoostProcess", "toolchain": "vs-16-2019-win64-sdk-10-0-18362-0-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "BoostProcess", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "BoostProcess", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

// { "example": "Boost-program-options", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
{ "example": "Boost-program-options", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
Expand Down Expand Up @@ -180,6 +232,19 @@
{ "example": "Boost-random", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
{ "example": "Boost-random", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

//{ "example": "Boost-redis", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-redis", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-redis", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-redis", "toolchain": "gcc-9-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-redis", "toolchain": "android-ndk-r17-api-24-arm64-v8a-clang-libcxx14", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-redis", "toolchain": "osx-12-3-arch-universal2-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-redis", "toolchain": "ios-nocodesign-15-5-arm64-cxx17", "os": "macos-12", "python": "3.8", "script": "build.sh" },
//{ "example": "Boost-redis", "toolchain": "ninja-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
// { "example": "Boost-redis", "toolchain": "nmake-vs-16-2019-win64-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-redis", "toolchain": "vs-16-2019-win64-sdk-10-0-18362-0-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-redis", "toolchain": "mingw-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },
//{ "example": "Boost-redis", "toolchain": "msys-cxx17", "os": "windows-2019", "python": "3.8", "script": "build.cmd" },

// { "example": "Boost-serialization", "toolchain": "clang-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-serialization", "toolchain": "gcc-7-cxx17", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
// { "example": "Boost-serialization", "toolchain": "gcc-8-cxx17-fpic", "os": "ubuntu-20.04", "python": "3.8", "script": "build.sh" },
Expand Down
22 changes: 22 additions & 0 deletions cmake/projects/Boost/cobalt/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2013, Ruslan Baratov

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update copyright, except if it is a generated file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generated by a script

# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_download)
include(hunter_pick_scheme)

hunter_pick_scheme(
DEFAULT
url_sha1_boost_library
IPHONEOS
url_sha1_boost_ios_library
)

hunter_download(
PACKAGE_NAME
Boost
PACKAGE_COMPONENT
cobalt
PACKAGE_INTERNAL_DEPS_ID "50"
)
4 changes: 4 additions & 0 deletions cmake/projects/Boost/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
BOOST_LIBS="
atomic
chrono
charconv
cobalt
container
context
contract
Expand All @@ -24,6 +26,8 @@ BOOST_LIBS="
math
mpi
nowide
predef
process
program_options
python
random
Expand Down
33 changes: 33 additions & 0 deletions cmake/projects/Boost/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,39 @@ hunter_add_version(
75b1f569134401d178ad2aaf97a2993898dd7ee3
)

hunter_add_version(
PACKAGE_NAME
Boost
VERSION
"1.84.0"
URL
"https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.bz2"
SHA1
734dcfb452380a4d6304060dc2ed983668dd290f
)

hunter_add_version(
PACKAGE_NAME
Boost
VERSION
"1.85.0"
URL
"https://archives.boost.io/release/1.85.0/source/boost_1_85_0.tar.bz2"
SHA1
ed58c632befe0d299b39f9e23de1fc20d03870d7
)

hunter_add_version(
PACKAGE_NAME
Boost
VERSION
"1.86.0"
URL
"https://archives.boost.io/release/1.86.0/source/boost_1_86_0.tar.bz2"
SHA1
fd0d26a7d5eadf454896942124544120e3b7a38f
)

if(MSVC)
hunter_check_toolchain_definition(NAME "_DLL" DEFINED _hunter_vs_md)
hunter_cmake_args(
Expand Down
22 changes: 22 additions & 0 deletions cmake/projects/Boost/predef/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2013, Ruslan Baratov

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update copyright, except if it is a generated file

# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_download)
include(hunter_pick_scheme)

hunter_pick_scheme(
DEFAULT
url_sha1_boost_library
IPHONEOS
url_sha1_boost_ios_library
)

hunter_download(
PACKAGE_NAME
Boost
PACKAGE_COMPONENT
predef
PACKAGE_INTERNAL_DEPS_ID "50"
)
22 changes: 22 additions & 0 deletions cmake/projects/Boost/process/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2013, Ruslan Baratov

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update copyright, except if it is a generated file

# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_download)
include(hunter_pick_scheme)

hunter_pick_scheme(
DEFAULT
url_sha1_boost_library
IPHONEOS
url_sha1_boost_ios_library
)

hunter_download(
PACKAGE_NAME
Boost
PACKAGE_COMPONENT
process
PACKAGE_INTERNAL_DEPS_ID "50"
)
18 changes: 18 additions & 0 deletions examples/Boost-charconv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2025, Dominik Nussbaumer
# All rights reserved.

cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(Boost_DEBUG ON CACHE BOOLEAN "")
set(TESTING_CONFIG_OPT FILEPATH ${CMAKE_CURRENT_LIST_DIR}/../Boost-useBoostConfig/config.cmake)

# Emulate HunterGate:
# * https://github.com/cpp-pm/gate
include("../common.cmake")

project(download-boost)
hunter_add_package(Boost COMPONENTS charconv)
find_package(Boost CONFIG REQUIRED charconv)

add_executable(foo foo.cpp)
target_link_libraries(foo PUBLIC Boost::charconv)
Loading
Loading