1
0
Fork 0

Fix CMakeLists.txt debug

This commit is contained in:
namedkitten 2020-04-25 01:06:05 +01:00
parent 2b570d7669
commit 9a0c08f44a

View file

@ -68,7 +68,13 @@ endif(CCACHE_FOUND)
set(CMAKE_BUILD_TYPE DEBUG) 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") 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}) if(DEFINED ENV{TRAVIS})
execute_process( execute_process(