mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-07 15:32:34 +00:00
This change adds `cmake-format` as. a pre-commit hook. The style file closely matches that in Clio, and they will be made to be equivalent over time. For now, some files have been excluded, as those need some manual adjustments, which will be done in future changes.
18 lines
805 B
CMake
18 lines
805 B
CMake
option(validator_keys "Enables building of validator-keys tool as a separate target (imported via FetchContent)" OFF)
|
|
|
|
if (validator_keys)
|
|
git_branch(current_branch)
|
|
# default to tracking VK master branch unless we are on release
|
|
if (NOT (current_branch STREQUAL "release"))
|
|
set(current_branch "master")
|
|
endif ()
|
|
message(STATUS "Tracking ValidatorKeys branch: ${current_branch}")
|
|
|
|
FetchContent_Declare(validator_keys GIT_REPOSITORY https://github.com/ripple/validator-keys-tool.git
|
|
GIT_TAG "${current_branch}")
|
|
FetchContent_MakeAvailable(validator_keys)
|
|
set_target_properties(validator-keys PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
|
install(TARGETS validator-keys RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
endif ()
|