summaryrefslogtreecommitdiff
path: root/repo/monero-gui/version-string.patch
blob: f64be9d8975ef57e4fe9be2922202b7161689dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cmake/Version.cmake b/cmake/Version.cmake
index 3677e80..490de2c 100644
--- a/cmake/Version.cmake
+++ b/cmake/Version.cmake
@@ -32,7 +32,7 @@ function (write_static_version_header hash)
 endfunction ()
 
 find_package(Git QUIET)
-if ("$Format:$" STREQUAL "")
+if ("$Format:$" STREQUAL "" OR NOT EXISTS .git)
   # We're in a tarball; use hard-coded variables.
   set(VERSION_IS_RELEASE "true")
   write_version("release")