CMake: Enable C++ latest and coroutines for MSVC builds

Add /std:c++latest and /await compiler flags for MSVC builds to enable
the latest C++ features and coroutine support.
This commit is contained in:
Zephyron 2025-03-03 16:35:57 +10:00
parent 5caecd8151
commit 1308e2b935

View file

@ -14,7 +14,7 @@ include(CTest)
# Disable Warnings as Errors for MSVC
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX-")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX- /std:c++latest /await")
endif()
# Check if SDL2::SDL2 target exists; if not, create an alias