Skip to content

Commit 4b5d226

Browse files
dan-42rbsheth
authored andcommitted
Update Boost 1.72.0-p0 (#113)
* Update Boost 1.72.0-p0 * Make Boost.System example work with boost 1.72.0-p0
1 parent 82fc555 commit 4b5d226

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

cmake/configs/default.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if(MINGW)
3737
# https://github.com/boostorg/build/issues/301
3838
hunter_default_version(Boost VERSION 1.64.0)
3939
else()
40-
hunter_default_version(Boost VERSION 1.71.0-p0)
40+
hunter_default_version(Boost VERSION 1.72.0-p0)
4141
endif()
4242

4343
hunter_default_version(BoostCompute VERSION 0.5-p0)

cmake/projects/Boost/hunter.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,17 @@ hunter_add_version(
159159
a3aae228568555c997927d5f531acb8f4830762c
160160
)
161161

162+
hunter_add_version(
163+
PACKAGE_NAME
164+
Boost
165+
VERSION
166+
"1.72.0-p0"
167+
URL
168+
"https://github.com/cpp-pm/boost/archive/v1.72.0-p0.tar.gz"
169+
SHA1
170+
6022cd8eea0f04cbfb78df8064fcd134e40a7735
171+
)
172+
162173
# up until 1.63 sourcefourge was used
163174
set(_hunter_boost_base_url "https://downloads.sourceforge.net/project/boost/boost/")
164175
hunter_add_version(

examples/Boost-system/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ target_link_libraries(foo PUBLIC Boost::system)
1717

1818
file(GLOB_RECURSE boost_configs "${BOOST_ROOT}/*/BoostConfig.cmake")
1919
list(LENGTH boost_configs len)
20-
if(NOT len EQUAL "1")
21-
message(FATAL_ERROR "More than one *Config: ${boost_configs}")
20+
if(NOT len GREATER "0")
21+
message(FATAL_ERROR "Not even one *Config: ${boost_configs}")
2222
endif()

0 commit comments

Comments
 (0)