From 8ed121cfe6d8d423200a1a6fdd428d0d94d45886 Mon Sep 17 00:00:00 2001 From: Max Luebke Date: Tue, 5 Apr 2022 20:17:50 +0200 Subject: [PATCH] Define new build type 'GenericOpt' --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0fe7fb6..bc7e476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,5 +10,13 @@ find_package(OpenMP) 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(src)