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

@ -4,7 +4,9 @@ option(ENABLE_IO_THREAD "Start up a separate I/O thread, otherwise I'd need to c
option(USE_STATIC_CRT "Use /MT[d] for dynamic library" OFF)
option(WARNINGS_AS_ERRORS "When enabled, compiles with `-Werror` (on *nix platforms)." OFF)
set(CMAKE_CXX_STANDARD 14)
if (NOT MSVC)
set(CMAKE_CXX_STANDARD 14)
endif()
set(BASE_RPC_SRC
${PROJECT_SOURCE_DIR}/include/discord_rpc.h