Skip to content

Commit

Permalink
Merge pull request #9543
Browse files Browse the repository at this point in the history
968d796 cmake: make PER_BLOCK_CHECKPOINT an option (tobtoht)
  • Loading branch information
luigi1111 committed Dec 23, 2024
2 parents 8ed1287 + 968d796 commit 6633fcb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/blockchain_utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ target_link_libraries(blockchain_import
${Boost_THREAD_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
${EXTRA_LIBRARIES}
${Blocks})
$<TARGET_NAME_IF_EXISTS:blocks>)

if(ARCH_WIDTH)
target_compile_definitions(blockchain_import
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ target_link_libraries(daemon
${ZMQ_LIB}
${GNU_READLINE_LIBRARY}
${EXTRA_LIBRARIES}
${Blocks})
$<TARGET_NAME_IF_EXISTS:blocks>)
set_property(TARGET daemon
PROPERTY
OUTPUT_NAME "monerod")
Expand Down
1 change: 0 additions & 1 deletion src/device/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,4 @@ target_link_libraries(device
${Boost_SERIALIZATION_LIBRARY}
PRIVATE
version
${Blocks}
${EXTRA_LIBRARIES})

0 comments on commit 6633fcb

Please sign in to comment.