Define new build type 'GenericOpt'

This commit is contained in:
Max Luebke 2022-04-05 20:17:50 +02:00
parent 1c86a7e5b3
commit 8ed121cfe6

View File

@ -10,5 +10,13 @@ find_package(OpenMP)
option(USE_OPENMP "Compile with OpenMP support" ON) option(USE_OPENMP "Compile with OpenMP support" ON)
set(CMAKE_CXX_FLAGS_GENERICOPT "-O3 -march=native" CACHE STRING
"Flags used by the C++ compiler during opt builds."
FORCE)
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel GenericOpt."
FORCE)
add_subdirectory(app) add_subdirectory(app)
add_subdirectory(src) add_subdirectory(src)