From 2ef7216b7e82e4432ac1056998fb36c164cea1c6 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Wed, 25 Oct 2023 00:13:16 +0800 Subject: [PATCH] added check for msvc 1930. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f2fbb31..a406a4f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,11 @@ if(NOT cxx_std_20 IN_LIST CMAKE_CXX_COMPILE_FEATURES) return() endif() +if(MSVC_VERSION AND MSVC_VERSION LESS 1930) + message(STATUS "Boost.Cobalt: not building, the lowest supported MSVC version is 1930. ${MSVC_VERSION} is not supported") + return() +endif() + option(BOOST_COBALT_USE_BOOST_CONTAINER "Boost.Cobalt: Use boost.container instead of std::pmr" ${BOOST_COBALT_SHOULD_USE_CONTAINER})