From e98a0859b99b4f4ad7544f1b70675bfb92cd5606 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 20 May 2024 22:13:43 -0700 Subject: [PATCH] CMake: update required compiler versions for std::bitcast support This is based on https://en.cppreference.com/w/cpp/compiler_support. I'm not actually entirely sure what the needed Xcode version is. --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f8e845d0f..ebaadef619 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,13 +47,13 @@ if (COMPILER STREQUAL "GNU") set(COMPILER "GCC") # perfer printing GCC instead of GNU endif() -# Enforce minimium compiler versions that support the c++20 features we use -set (GCC_min_version 10) -set (Clang_min_version 12) -set (AppleClang_min_version 13.0.0) -set (min_xcode_version "13.0") # corrosponding xcode version for AppleClang_min_version +# Enforce minimum compiler versions that support the c++20 features we use +set (GCC_min_version 11) +set (Clang_min_version 14) +set (AppleClang_min_version 14.0.3) +set (min_xcode_version "14.0") # corresponding xcode version for AppleClang_min_version set (MSVC_min_version 14.32) -set (min_vs_version "2022 17.2.3") # corrosponding Visual Studio version for MSVC_min_version +set (min_vs_version "2022 17.2.3") # corresponding Visual Studio version for MSVC_min_version message(STATUS "Using ${COMPILER} ${CMAKE_CXX_COMPILER_VERSION}")