stellarUCI Chess engine written in C++20 |
git clone git://git.dimitrijedobrota.com/stellar.git |
Log | Files | Refs | README | LICENSE | |
commit | 24b08195dc653f124987c1973d70760d0f688e50 |
parent | 94cd4734a6d4c1ef9e4d683855372019325e8549 |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Thu, 8 Feb 2024 22:05:00 +0000 |
Add profiler build type
Diffstat:M | CMakeLists.txt | | | +++++++++++ |
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -14,6 +14,17 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS_PROFILE "-pg" CACHE STRING
"Enable profileing for the project"
FORCE
)
mark_as_advanced(CMAKE_CXX_FLAGS_PROFILE)
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Profile"
FORCE
)
include(CheckCXXCompilerFlag)