···11+diff --git i/cmake/version.cmake w/cmake/version.cmake
22+index 0ed123b5..4348e7e1 100644
33+--- i/cmake/version.cmake
44++++ w/cmake/version.cmake
55+@@ -90,41 +90,12 @@ function(determine_version source_dir var_prefix)
66+ else()
77+ message(STATUS "Found no version.txt.")
88+ endif()
99+- # for GIT_EXECUTABLE
1010+- find_package(Git REQUIRED)
1111+- # get a description of the version, something like:
1212+- # v1.9.1-0-g38ffe82 (a tagged release)
1313+- # v1.9.1-0-g38ffe82-dirty (a tagged release with local modifications)
1414+- # v1.9.0-3-g5b92266 (post-release snapshot)
1515+- # v1.9.0-3-g5b92266-dirty (post-release snapshot with local modifications)
1616+- _git(version describe --abbrev=${GIT_REV_LEN} --match "v[0-9]*" --long --dirty)
1717+- if (NOT _git_ec EQUAL 0)
1818+- # no annotated tags, fake one
1919+- message(STATUS "Found no annotated tags.")
2020+- _git(revision rev-parse --short=${GIT_REV_LEN} --verify HEAD)
2121+- if (_git_ec EQUAL 0)
2222+- set(version "v${base_version}-0-g${revision}")
2323+- # check if dirty (this won't detect untracked files, but should be ok)
2424+- _git(changes diff-index --quiet HEAD --)
2525+- if (NOT _git_ec EQUAL 0)
2626+- string(APPEND version "-dirty")
2727+- endif()
2828+- # append the commit timestamp of the most recent commit (only
2929+- # in non-release branches -- typically master)
3030+- _git(commit_timestamp show -s --format=%ct)
3131+- if (_git_ec EQUAL 0)
3232+- string(APPEND version "+${commit_timestamp}")
3333+- endif()
3434+- elseif(has_version_txt)
3535+- # Nothing to get from git - so use version.txt completely
3636+- set(version "${version_file}")
3737+- else()
3838+- # Sad case - no git, no version.txt
3939+- set(version "v${base_version}")
4040+- endif()
4141++ if(has_version_txt)
4242++ # Nothing to get from git - so use version.txt completely
4343++ set(version "${version_file}")
4444+ else()
4545+- set(has_release_tag YES)
4646+- message(STATUS "Found annotated tag ${version}")
4747++ # Sad case - no git, no version.txt
4848++ set(version "v${base_version}")
4949+ endif()
5050+ extract_version_info("${version}" "${local_prefix}")
5151+ if ("${has_version_txt}" AND NOT ${base_version} STREQUAL ${local_prefix}_VERSION)