From 121f53a4b9cc72a28c1a690c14d1d87dc2ed93a6 Mon Sep 17 00:00:00 2001 From: Vaclav Haisman Date: Mon, 11 Nov 2024 21:46:17 +0100 Subject: [PATCH] Try and add /std:c++latest for MSVC. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b31883f96..3a19bc2fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ enable_language (CXX) if (MSVC) set (CMAKE_CXX_STANDARD 23) if (CMAKE_VS_PLATFORM_NAME MATCHES "ARM") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /std:c++latest") endif () else () set (CMAKE_CXX_STANDARD 23)