mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Per XLS-0095, we are taking steps to rename ripple(d) to xrpl(d). This change updates the CMake files and definitions therein, plus a handful of related modifications. Specifically, the compiler files are renamed from `RippleXXX.cmake` or `RippledXXX.cmake` to `XrplXXX.cmake`, and any references to `ripple` and `rippled` (with or without capital letters) are renamed to `xrpl` and `xrpld`, respectively. The name of the binary, currently `rippled`, remains unchanged and will be updated in a separate PR. This change is purely cosmetic and does not affect the functioning of the binary.
16 lines
520 B
CMake
16 lines
520 B
CMake
#[===================================================================[
|
|
read version from source
|
|
#]===================================================================]
|
|
|
|
file(STRINGS src/libxrpl/protocol/BuildInfo.cpp BUILD_INFO)
|
|
foreach(line_ ${BUILD_INFO})
|
|
if(line_ MATCHES "versionString[ ]*=[ ]*\"(.+)\"")
|
|
set(xrpld_version ${CMAKE_MATCH_1})
|
|
endif()
|
|
endforeach()
|
|
if(xrpld_version)
|
|
message(STATUS "xrpld version: ${xrpld_version}")
|
|
else()
|
|
message(FATAL_ERROR "unable to determine xrpld version")
|
|
endif()
|