diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2016-01-24 13:55:34 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2016-01-24 13:55:34 +0300 |
commit | 4f3fe64b5d3f608e7a11ee149f8e9e2baed373b2 (patch) | |
tree | 8b31e6abe244a4409cd2b1ea77f3b74e97612477 /CMakeLists.txt | |
parent | b4809eeeaab7d31190a3be67cff6c4c1bf97a25e (diff) |
set git version if not found at build time (mainly for PPA)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c33f3a2c4..24193cd72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,11 @@ set(REMMINA_VERSION "${REMMINA_VERSION_MAJOR}.${REMMINA_VERSION_MINOR}.${REMMINA include(GetGitRevisionDescription) git_get_exact_tag(GIT_REVISION --tags --always) if (${GIT_REVISION} STREQUAL "n/a") - git_rev_parse(GIT_REVISION --short) + git_rev_parse(GIT_REVISION --short) +endif() + +if(NOT GIT_REVISION) + set(GIT_REVISION "rcgit.8") endif() message(STATUS "Git Revision ${GIT_REVISION}") |