Bump minimum boost version in CMakeLists

This commit is contained in:
Nikola Matic 2023-01-16 17:51:28 +01:00
parent 4ac1afd39e
commit 4b618cc3de
3 changed files with 4 additions and 9 deletions

View File

@ -34,10 +34,11 @@ set(BOOST_COMPONENTS "filesystem;unit_test_framework;program_options;system")
if (WIN32) if (WIN32)
# Boost 1.77 fixes a bug that causes crashes on Windows for some relative paths in --allow-paths. # 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 # 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() 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() endif()
# If cmake is older than boost and boost is older than 1.70, # If cmake is older than boost and boost is older than 1.70,

View File

@ -41,9 +41,6 @@
#include <libsolutil/vector_ref.h> #include <libsolutil/vector_ref.h>
#include <boost/version.hpp> #include <boost/version.hpp>
#if (BOOST_VERSION < 106500)
#error "Unsupported Boost version. At least 1.65 required."
#endif
#include <map> #include <map>
#include <utility> #include <utility>

View File

@ -25,9 +25,6 @@
#include <libsolutil/CommonData.h> #include <libsolutil/CommonData.h>
#include <boost/version.hpp> #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. // TODO: do this only conditionally as soon as a boost version with gcc 12 support is released.
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 12) #if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 12)