From 3516f148eff91884b0e75a8f42694be3f601a930 Mon Sep 17 00:00:00 2001 From: Gagik Hakobyan Date: Sun, 30 Dec 2018 16:26:16 +0400 Subject: [PATCH] enable all O3 optimizations --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9f0e8e0..3ae83fca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,10 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_C_COMPILER /usr/bin/gcc) +# enables all -O3 optimizations + +add_definitions(-Ofast) +add_definitions(-Wno-unused-result) # Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON)