mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Bump minimum boost version in CMakeLists
This commit is contained in:
parent
4ac1afd39e
commit
4b618cc3de
@ -34,10 +34,11 @@ set(BOOST_COMPONENTS "filesystem;unit_test_framework;program_options;system")
|
||||
if (WIN32)
|
||||
# Boost 1.77 fixes a bug that causes crashes on Windows for some relative paths in --allow-paths.
|
||||
# See https://github.com/boostorg/filesystem/issues/201
|
||||
find_package(Boost 1.77.0 QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||
# Boost 1.78 requires upgrading to MSVC2022, and causes issues with boost::filesystem calls.
|
||||
find_package(Boost 1.77.0 EXACT QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||
else()
|
||||
# Boost 1.65 is the first to also provide boost::get for rvalue-references (#5787).
|
||||
find_package(Boost 1.65.0 QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||
|
||||
find_package(Boost 1.74.0 QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||
endif()
|
||||
|
||||
# If cmake is older than boost and boost is older than 1.70,
|
||||
|
@ -41,9 +41,6 @@
|
||||
#include <libsolutil/vector_ref.h>
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#if (BOOST_VERSION < 106500)
|
||||
#error "Unsupported Boost version. At least 1.65 required."
|
||||
#endif
|
||||
|
||||
#include <map>
|
||||
#include <utility>
|
||||
|
@ -25,9 +25,6 @@
|
||||
#include <libsolutil/CommonData.h>
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#if (BOOST_VERSION < 106500)
|
||||
#error "Unsupported Boost version. At least 1.65 required."
|
||||
#endif
|
||||
|
||||
// TODO: do this only conditionally as soon as a boost version with gcc 12 support is released.
|
||||
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 12)
|
||||
|
Loading…
Reference in New Issue
Block a user