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")