Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e85e73672..44e205826 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -300,10 +300,12 @@ set(WITH_LIBRARY_VERSIONING "ON")
message(STATUS "Remmina version: ${Remmina_VERSION}")
-include(GetGitRevisionDescription)
-git_get_exact_tag(REMMINA_GIT_REVISION --tags --always)
-if(${REMMINA_GIT_REVISION} STREQUAL "n/a")
- git_rev_parse(REMMINA_GIT_REVISION --short)
+if (NOT DEFINED REMMINA_GIT_REVISION)
+ include(GetGitRevisionDescription)
+ git_get_exact_tag(REMMINA_GIT_REVISION --tags --always)
+ if(NOT ${REMMINA_GIT_REVISION} STREQUAL "n/a")
+ git_rev_parse(REMMINA_GIT_REVISION --short)
+ endif()
endif()
message(STATUS "Git Revision: ${REMMINA_GIT_REVISION}")