Remove impossible version export cruft

In Monero 12.0 the version code got rewritten and, as a result, the
variable substitution export attribute no longer applies (since
`version.cmake` got moved and renamed to `Version.cmake`), but this bit
of cruft to rewrite the release tag to "-release" and the attribute are
still there, but cannot ever be invoked.

Remove them.  I specifically don't want to fix it because source exports
can come from anywhere, *not* only tagged versions, so putting
"-release" in the version string could be highly misleading.
This commit is contained in:
Jason Rhinelander 2020-05-03 15:53:29 -03:00
parent b4db8f7598
commit 3dddd07b9c
2 changed files with 1 additions and 5 deletions

1
.gitattributes vendored
View File

@ -1,2 +1 @@
.git* export-ignore
version.cmake export-subst

View File

@ -32,10 +32,7 @@ function (write_static_version_header hash)
endfunction ()
find_package(Git QUIET)
if ("$Format:$" STREQUAL "")
# We're in a tarball; use hard-coded variables.
write_static_version_header("release")
elseif (GIT_FOUND OR Git_FOUND)
if (GIT_FOUND OR Git_FOUND)
message(STATUS "Found Git: ${GIT_EXECUTABLE}")
add_custom_command(
OUTPUT "${CMAKE_BINARY_DIR}/version.cpp"