Skip to content

Commit 7c62ec4

Browse files
authored
Merge pull request #201 from boostorg/boost-166-requirement
Update required Boost version to 1.66
2 parents 2a8f682 + 3484846 commit 7c62ec4

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.github/workflows/ci_tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
DEP_DIR: ${{github.workspace}}/dependencies
5454
# VS 2022 only supported by Boost.Build 1.78+ with changes to build files (e.g. in Boost.Thread) required that are introduced in Boost 1.66
5555
# Boost.Iostreams doesn't support VS 2022 until 1.69
56-
BOOST_VERSION: ${{ startsWith(matrix.generator, 'Visual Studio') && '1.69.0' || '1.56.0' }}
56+
BOOST_VERSION: ${{ startsWith(matrix.generator, 'Visual Studio') && '1.69.0' || '1.66.0' }}
5757
steps:
5858
- uses: actions/checkout@v4
5959
- name: Sanity check version
@@ -83,11 +83,11 @@ jobs:
8383
if: matrix.standalone == 'Boost' && steps.cache-boost.outputs.cache-hit != 'true'
8484
working-directory: __buildBoost
8585
run: |
86-
git submodule update --init --jobs 3 tools/boostdep libs/filesystem tools/inspect libs/wave # Last 2 are required for pre-1.64
86+
git submodule update --init --jobs 3 tools/boostdep libs/filesystem
8787
if [[ $BOOST_VERSION < '1.73.0' ]]; then
8888
(cd tools/boostdep && git fetch origin && git checkout boost-1.73.0 && git checkout boost-1.63.0 -- depinst/exceptions.txt)
8989
fi
90-
python tools/boostdep/depinst/depinst.py --include tools --exclude test --git_args '--jobs 3 --depth 1' wave # Should be filesystem, but works because that is a dependency of wave
90+
python tools/boostdep/depinst/depinst.py --include tools --exclude test --git_args '--jobs 3 --depth 1' filesystem
9191
if [[ "${{matrix.generator}}" =~ "Visual Studio" ]]; then
9292
toolset=msvc-14.3
9393
# Boost.Build doesn't support MSVC 2022 (14.3) until 1.78
@@ -97,9 +97,7 @@ jobs:
9797
fi
9898
else
9999
toolset=gcc
100-
[[ "${{matrix.os}}" =~ "windows" ]] && botstrap_toolset=mingw || botstrap_toolset=gcc
101-
./bootstrap.sh --with-toolset="$botstrap_toolset" --with-libraries=system,filesystem threading=multi || (cat bootstrap.log && false)
102-
sed -i 's/mingw/gcc/' project-config.jam
100+
./bootstrap.sh --with-toolset=$toolset --with-libraries=system,filesystem threading=multi || (cat bootstrap.log && false)
103101
./b2 headers
104102
fi
105103
echo "B2_TOOLSET=$toolset" >> $GITHUB_ENV
@@ -147,7 +145,8 @@ jobs:
147145
extraFlags="-DBoost_DEBUG=ON -DBoost_NO_BOOST_CMAKE=ON -DCMAKE_INSTALL_PREFIX=$HOME/local"
148146
if ! [[ "${{matrix.generator}}" =~ "Visual Studio" ]]; then
149147
# Enable warning to find missing defines, especially important for the standalone version
150-
extraFlags="$extraFlags -DCMAKE_CXX_FLAGS=-Wundef"
148+
extraFlags+=" -DCMAKE_CXX_FLAGS=-Wundef"
149+
extraFlags+=" -DBoost_ARCHITECTURE=-x64" # ABI tag for MinGW
151150
fi
152151
cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} -DBUILD_SHARED_LIBS=${{matrix.shared_lib}} -G "${{matrix.generator}}" $extraFlags ..
153152
- name: Build

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
env:
1818
DEP_DIR: ${{github.workspace}}/dependencies
19-
BOOST_VERSION: 1.56.0
19+
BOOST_VERSION: 1.66.0
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Extract tag name

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ else()
9191
if(WIN32 AND NOT DEFINED Boost_USE_STATIC_LIBS)
9292
set(Boost_USE_STATIC_LIBS ON)
9393
endif()
94-
find_package(Boost 1.56 REQUIRED)
94+
find_package(Boost 1.66 REQUIRED)
9595
endif()
9696
target_link_libraries(boost_nowide PUBLIC Boost::boost)
9797
endif()

Config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ foreach(dep IN ITEMS boost_config)
88
find_dependency(${dep})
99
endforeach()
1010
else()
11-
find_dependency(Boost 1.56)
11+
find_dependency(Boost 1.66)
1212
endif()
1313

1414
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This is different to the version available prior to the inclusion in Boost.
3636

3737
### Requirements (Boost version)
3838

39-
* Boost (>= 1.56)
39+
* Boost (>= 1.66)
4040
* CMake (when not using as part of Boost) or B2 (otherwise)
4141

4242
### Requirements (Standalone version)

doc/changelog.dox

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2019-2024 Alexander Grund
2+
// Copyright (c) 2019-2025 Alexander Grund
33
//
44
// Distributed under the Boost Software License, Version 1.0.
55
// https://www.boost.org/LICENSE_1_0.txt
@@ -8,6 +8,9 @@
88

99
\section changelog Changelog
1010

11+
\subsection changelog_11_4_1 Nowide 11.4.1 (Boost 1.89)
12+
- Require at least Boost 1.66
13+
1114
\subsection changelog_11_3_1 Nowide 11.3.1 (Boost 1.88)
1215
- Fix redefinition of `_CRT_SECURE_NO_WARNINGS`
1316
- Make `getenv` thread-safe

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if(NOT TARGET tests)
1414
endif()
1515

1616
if(NOT BOOST_SUPERPROJECT_SOURCE_DIR)
17-
find_package(Boost 1.56 REQUIRED COMPONENTS filesystem system)
17+
find_package(Boost 1.66 REQUIRED COMPONENTS filesystem system)
1818
endif()
1919

2020
# In some environments this test (part) may fail, so allow to disable it

0 commit comments

Comments
 (0)