diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 98d836d..7440170 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.10) project(ipc) add_compile_definitions(__IPC_LIBRARY__) -if(CMAKE_COMPILER_IS_GNUCXX) - add_compile_options("-std=gnu++1z") -else() +if(MSVC) add_compile_options("/std:c++17") +else() + add_compile_options("-std=gnu++1z") endif() include_directories("../include")