mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-13 22:53:27 +01:00
always check git diff
This commit is contained in:
parent
ffaa78700c
commit
446a7ddc49
@ -160,13 +160,8 @@ elseif(NOT MSVC)
|
|||||||
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
|
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(COMMIT_ID_IN_VERSION ON CACHE BOOL "Include commit ID in version")
|
|
||||||
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version")
|
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version")
|
||||||
if (NOT COMMIT_ID_IN_VERSION)
|
if(DEFINED COMMIT)
|
||||||
set(VERSION "${VERSION}-unknown")
|
|
||||||
configure_file("src/version.h.in" "version/version.h")
|
|
||||||
add_custom_target(version ALL)
|
|
||||||
elseif(DEFINED COMMIT)
|
|
||||||
string(REPLACE "." "\\." VERSION_RE "${VERSION}")
|
string(REPLACE "." "\\." VERSION_RE "${VERSION}")
|
||||||
if(NOT REFS MATCHES "(\\(|, )tag: v${VERSION_RE}(\\)|, )")
|
if(NOT REFS MATCHES "(\\(|, )tag: v${VERSION_RE}(\\)|, )")
|
||||||
set(VERSION "${VERSION}-g${COMMIT}")
|
set(VERSION "${VERSION}-g${COMMIT}")
|
||||||
|
Loading…
Reference in New Issue
Block a user