Skip to content

Commit 22381df

Browse files
authored
Update boost to 1.86 (#592)
* Update to v1.85.0 * Boost example to 1.86
1 parent c3807eb commit 22381df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/boost/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ include(../../cmake/CPM.cmake)
1313

1414
CPMAddPackage(
1515
NAME Boost
16-
VERSION 1.84.0
17-
URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz
18-
URL_HASH SHA256=2e64e5d79a738d0fa6fb546c6e5c2bd28f88d268a2a080546f74e5ff98f29d0e
19-
OPTIONS "BOOST_ENABLE_CMAKE ON" "BOOST_INCLUDE_LIBRARIES container\\\;asio" # Note the escapes!
16+
VERSION 1.86.0 # Versions less than 1.85.0 may need patches for installation targets.
17+
URL https://github.com/boostorg/boost/releases/download/boost-1.86.0/boost-1.86.0-cmake.tar.xz
18+
URL_HASH SHA256=2c5ec5edcdff47ff55e27ed9560b0a0b94b07bd07ed9928b476150e16b0efc57
19+
OPTIONS "BOOST_ENABLE_CMAKE ON" "BOOST_SKIP_INSTALL_RULES ON" # Set `OFF` for installation
20+
"BUILD_SHARED_LIBS OFF" "BOOST_INCLUDE_LIBRARIES container\\\;asio" # Note the escapes!
2021
)
2122

23+
# `Boost::headers` is also valid
2224
target_link_libraries(CPMExampleBoost PRIVATE Boost::asio Boost::container)

0 commit comments

Comments
 (0)