Make the builds optimalized
This commit is contained in:
parent
3c84735b46
commit
c8f1e52587
|
@ -3,7 +3,12 @@ project(nutri)
|
|||
|
||||
set(CMAKE_CXX_STANDARD 26)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||
set(CMAKE_CXX_FLAGS -fdiagnostics-color=always)
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
add_compile_options(-O3 -march=native)
|
||||
endif()
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
|
|
Loading…
Reference in New Issue