diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2016-02-01 12:12:12 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2016-02-01 12:12:12 +0300 |
commit | 215eb7dc3dafe78c08cc2a6011047194be260c9c (patch) | |
tree | 154432080656bc8ce15b794f401782349e8761e5 /CMakeLists.txt | |
parent | 14f4a1ef79924343bd58a532ceabe5c1faa5335b (diff) |
Makes GetGitRevisionDescription behaves correcthly when used outside the source tree
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cf8b6c5b6..4c38ed5e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,7 @@ set(REMMINA_VERSION "${REMMINA_VERSION_MAJOR}.${REMMINA_VERSION_MINOR}.${REMMINA include(GetGitRevisionDescription) git_get_exact_tag(GIT_REVISION --tags --always) -if (${GIT_REVISION} STREQUAL ${REMMINA_VERSION_SUFFIX}) +if (${GIT_REVISION} STREQUAL "n/a") git_rev_parse(GIT_REVISION --short) endif() |