cmake: Use C++latest everywhere on MSVC.

This commit is contained in:
Admiral H. Curtiss
2022-05-21 03:31:41 +02:00
parent dbee810a04
commit 89fadd26a6
7 changed files with 33 additions and 17 deletions

View File

@ -1,7 +1,9 @@
# Compilers often don't use the latest C++ standard as the default. Periodically update this value (possibly conditioned
# on compiler) as new standards are ratified/support is available
set(CMAKE_CXX_STANDARD 17)
if (NOT MSVC)
set(CMAKE_CXX_STANDARD 17)
endif()
project(witest.cpplatest)
add_executable(witest.cpplatest)