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)