mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-03 18:15:51 +00:00
Mark package release's version string (#317)
This commit is contained in:
@@ -20,7 +20,7 @@ if(NOT GIT_COMMIT_HASH)
|
||||
endif()
|
||||
find_package(Git)
|
||||
if(Git_FOUND)
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe --always --abbrev=8
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE gch)
|
||||
if(gch)
|
||||
set(GIT_COMMIT_HASH "${gch}")
|
||||
@@ -29,6 +29,10 @@ if(NOT GIT_COMMIT_HASH)
|
||||
endif()
|
||||
endif()
|
||||
endif() #git
|
||||
if(PACKAGING)
|
||||
add_definitions(-DPKG=1)
|
||||
endif()
|
||||
|
||||
|
||||
add_library(clio)
|
||||
target_compile_features(clio PUBLIC cxx_std_20)
|
||||
|
||||
@@ -31,6 +31,9 @@ char const* const versionString = "1.0.2"
|
||||
#ifdef SANITIZER
|
||||
BOOST_PP_STRINGIZE(SANITIZER)
|
||||
#endif
|
||||
#endif
|
||||
#ifdef PKG
|
||||
"-release"
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user