mirror of
https://github.com/monero-project/monero.git
synced 2025-12-10 07:22:34 +01:00
Merge pull request #9543
968d796 cmake: make PER_BLOCK_CHECKPOINT an option (tobtoht)
This commit is contained in:
@@ -386,14 +386,9 @@ endif()
|
||||
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")
|
||||
|
||||
# set this to 0 if per-block checkpoint needs to be disabled
|
||||
set(PER_BLOCK_CHECKPOINT 1)
|
||||
|
||||
option(PER_BLOCK_CHECKPOINT "Enable per-block checkpoint" ON)
|
||||
if(PER_BLOCK_CHECKPOINT)
|
||||
add_definitions("-DPER_BLOCK_CHECKPOINT")
|
||||
set(Blocks "blocks")
|
||||
else()
|
||||
set(Blocks "")
|
||||
endif()
|
||||
|
||||
list(INSERT CMAKE_MODULE_PATH 0
|
||||
|
||||
Reference in New Issue
Block a user