Skip to content

Commit

Permalink
Try and add /std:c++latest for MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilx committed Nov 11, 2024
1 parent b91c12d commit 121f53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 121f53a

Please sign in to comment.