mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
CMakeLists.txt: switch from O0 to Og
This commit is contained in:
parent
5facfbd78a
commit
e89c2bc566
@ -46,8 +46,8 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|||||||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE
|
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE
|
||||||
STRING "Choose the build mode." FORCE)
|
STRING "Choose the build mode." FORCE)
|
||||||
endif()
|
endif()
|
||||||
string(APPEND CMAKE_C_FLAGS_DEBUG " -O0")
|
string(APPEND CMAKE_C_FLAGS_DEBUG " -Og")
|
||||||
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -O0")
|
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -Og")
|
||||||
if("${USE_COVERAGE}")
|
if("${USE_COVERAGE}")
|
||||||
if(NOT "${CMAKE_C_COMPILER_ID}" MATCHES "(Apple)?[Cc]lang")
|
if(NOT "${CMAKE_C_COMPILER_ID}" MATCHES "(Apple)?[Cc]lang")
|
||||||
message(FATAL_ERROR "USE_COVERAGE was on but CC isn't clang")
|
message(FATAL_ERROR "USE_COVERAGE was on but CC isn't clang")
|
||||||
@ -622,7 +622,7 @@ endif()
|
|||||||
############################################################################
|
############################################################################
|
||||||
# testing
|
# testing
|
||||||
if(${BUILD_TESTING})
|
if(${BUILD_TESTING})
|
||||||
#set(CMAKE_CTEST_ARGUMENTS "-V")
|
set(CMAKE_CTEST_ARGUMENTS "-V")
|
||||||
if(${USE_DOCTEST})
|
if(${USE_DOCTEST})
|
||||||
file(GLOB TESTSRCS CONFIGURE_DEPENDS src/tests/*.cpp)
|
file(GLOB TESTSRCS CONFIGURE_DEPENDS src/tests/*.cpp)
|
||||||
add_executable(notcurses-tester ${TESTSRCS})
|
add_executable(notcurses-tester ${TESTSRCS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user