Renames options for BLOCK/STACK debugging and fixes indentation

This commit is contained in:
John Richards
2020-10-20 00:42:44 -04:00
parent 05c373b07a
commit 0573318528
2 changed files with 8 additions and 8 deletions

View File

@@ -5,15 +5,15 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Debug options.
option(USE_BLOCK_DEBUG "Enable block debugging" OFF)
option(USE_STACK_DEBUG "Enable stack debugging" OFF)
option(ENABLE_BLOCK_DEBUG "Enable block debugging" OFF)
option(ENABLE_STACK_DEBUG "Enable stack debugging" OFF)
# Turn debug defs on if they're enabled.
if (USE_BLOCK_DEBUG)
add_definitions(-DBLOCK_DEBUG)
if (ENABLE_BLOCK_DEBUG)
add_definitions(-DBLOCK_DEBUG)
endif()
if (USE_STACK_DEBUG)
add_definitions(-DSTACK_DEBUG)
if (ENABLE_STACK_DEBUG)
add_definitions(-DSTACK_DEBUG)
endif()
# For generating the bytes tables