From 20caf4d1e1860790ed39e41e2be9b8963ad96e7c Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 30 Dec 2018 14:46:01 +0800 Subject: [PATCH] cmake --- build/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")