mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-18 17:45:48 +00:00
16 lines
545 B
CMake
16 lines
545 B
CMake
#[===================================================================[
|
|
read version from source
|
|
#]===================================================================]
|
|
|
|
file (STRINGS src/ripple/protocol/impl/BuildInfo.cpp BUILD_INFO)
|
|
foreach (line_ ${BUILD_INFO})
|
|
if (line_ MATCHES "versionString[ ]*=[ ]*\"(.+)\"")
|
|
set (rippled_version ${CMAKE_MATCH_1})
|
|
endif ()
|
|
endforeach ()
|
|
if (rippled_version)
|
|
message (STATUS "rippled version: ${rippled_version}")
|
|
else ()
|
|
message (FATAL_ERROR "unable to determine rippled version")
|
|
endif ()
|