enable all O3 optimizations

This commit is contained in:
Gagik Hakobyan 2018-12-30 16:26:16 +04:00
parent 047cc2c3a6
commit 3516f148ef

View File

@ -27,6 +27,10 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_COMPILER /usr/bin/gcc) 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 # Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)