Skip to content

Commit

Permalink
Update Boost 1.72.0-p0 (#113)
Browse files Browse the repository at this point in the history
* Update Boost 1.72.0-p0

* Make Boost.System example work with boost 1.72.0-p0
  • Loading branch information
dan-42 authored and rbsheth committed Jan 6, 2020
1 parent 82fc555 commit 4b5d226
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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.71.0-p0)
hunter_default_version(Boost VERSION 1.72.0-p0)
endif()

hunter_default_version(BoostCompute VERSION 0.5-p0)
Expand Down
11 changes: 11 additions & 0 deletions cmake/projects/Boost/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ hunter_add_version(
a3aae228568555c997927d5f531acb8f4830762c
)

hunter_add_version(
PACKAGE_NAME
Boost
VERSION
"1.72.0-p0"
URL
"https://github.com/cpp-pm/boost/archive/v1.72.0-p0.tar.gz"
SHA1
6022cd8eea0f04cbfb78df8064fcd134e40a7735
)

# up until 1.63 sourcefourge was used
set(_hunter_boost_base_url "https://downloads.sourceforge.net/project/boost/boost/")
hunter_add_version(
Expand Down
4 changes: 2 additions & 2 deletions examples/Boost-system/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ target_link_libraries(foo PUBLIC Boost::system)

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

0 comments on commit 4b5d226

Please sign in to comment.