diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2019-06-15 00:15:54 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2022-07-18 00:12:01 +0100 |
commit | 9e2da6c420843a4928b0fb42a41bafcfb4b95ee3 (patch) | |
tree | 43cd58b17e51c42d3fb10327f0dc06b59092d523 | |
parent | Drop in-tree miniupnpc (diff) | |
download | monero-9e2da6c420843a4928b0fb42a41bafcfb4b95ee3.tar.xz |
Use gentoo versioning
-rw-r--r-- | cmake/Version.cmake | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/cmake/Version.cmake b/cmake/Version.cmake index e9ed9fba1..5df4bc1ab 100644 --- a/cmake/Version.cmake +++ b/cmake/Version.cmake @@ -31,20 +31,8 @@ function (write_version tag) configure_file("${CMAKE_CURRENT_LIST_DIR}/../src/version.cpp.in" "${CMAKE_BINARY_DIR}/version.cpp") endfunction () -find_package(Git QUIET) -if ("$Format:$" STREQUAL "") - # We're in a tarball; use hard-coded variables. - set(VERSION_IS_RELEASE "true") - write_version("release") -elseif (GIT_FOUND OR Git_FOUND) - message(STATUS "Found Git: ${GIT_EXECUTABLE}") - include(GitVersion) - get_version_tag_from_git("${GIT_EXECUTABLE}") - write_version("${VERSIONTAG}") -else() - message(STATUS "WARNING: Git was not found!") - set(VERSION_IS_RELEASE "false") - write_version("unknown") -endif () +set(VERSION_IS_RELEASE "true") +write_version("release") + add_custom_target(genversion ALL DEPENDS "${CMAKE_BINARY_DIR}/version.cpp") |