From 9a0c08f44a024c37191f1caa95e9b6ddad2b6679 Mon Sep 17 00:00:00 2001 From: namedkitten Date: Sat, 25 Apr 2020 01:06:05 +0100 Subject: [PATCH] Fix CMakeLists.txt debug --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e51a3ba..c9c72e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,13 @@ endif(CCACHE_FOUND) set(CMAKE_BUILD_TYPE DEBUG) +option(DEBUG "debugging out" OFF) +if(DEBUG) SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -ggdb -g3 -O3") +else() +SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} -O3 -s") +endif() + if(DEFINED ENV{TRAVIS}) execute_process(