Adds ability to control block and stack debug output via CMake
Also updates README to detail how to enable various debug options. A typo related to running tests has also been fixed.
This commit is contained in:
@@ -4,6 +4,18 @@ cmake_minimum_required(VERSION 3.1)
|
||||
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)
|
||||
|
||||
# Turn debug defs on if they're enabled.
|
||||
if (USE_BLOCK_DEBUG)
|
||||
add_definitions(-DBLOCK_DEBUG)
|
||||
endif()
|
||||
if (USE_STACK_DEBUG)
|
||||
add_definitions(-DSTACK_DEBUG)
|
||||
endif()
|
||||
|
||||
# For generating the bytes tables
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user