Exclude CMake CXX standard from MSVC

This commit is contained in:
Jack Andersen 2020-04-10 19:00:51 -10:00
parent d72163ad27
commit b8e1e4673e
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
project(jbus)
set(CMAKE_CXX_STANDARD 17)
if (NOT MSVC)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
if(WIN32)
set(JBUS_PLAT_LIBS Ws2_32)