mirror of https://github.com/oxen-io/lokinet
remove fatal error message from git revision when not in git
This commit is contained in:
parent
0cc8517bca
commit
3e0585e0b8
|
@ -189,9 +189,11 @@ add_compile_options(${OPTIMIZE_FLAGS} ${CRYPTO_FLAGS})
|
|||
if(NOT GIT_VERSION)
|
||||
exec_program("git" ${CMAKE_CURRENT_SOURCE_DIR} ARGS "rev-parse --short HEAD" OUTPUT_VARIABLE GIT_VERSION_UNSTRIP)
|
||||
string(STRIP "${GIT_VERSION_UNSTRIP}" GIT_VERSION)
|
||||
add_definitions("-DGIT_REV=\"${GIT_VERSION}\"")
|
||||
endif(NOT GIT_VERSION)
|
||||
|
||||
string(REGEX REPLACE ^fatal.*$ nogit GIT_VERSION_REAL "${GIT_VERSION}")
|
||||
add_definitions("-DGIT_REV=\"${GIT_VERSION_REAL}\"")
|
||||
|
||||
set(EXE lokinet)
|
||||
set(EXE_SRC daemon/main.cpp)
|
||||
|
||||
|
|
Loading…
Reference in New Issue