From eac261b153293002825a256af5979d3f86572e6f Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 30 Dec 2018 16:36:37 +0800 Subject: [PATCH] cmake error --- build/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index b69cc57..a7ab401 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -5,7 +5,8 @@ add_compile_definitions(__IPC_LIBRARY__) if(MSVC) add_compile_options("/std:c++17") else() - add_compile_options("-std=gnu++1z -O2") + add_compile_options("-std=gnu++1z") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2") endif() include_directories("../include")