From d17f8015eb68641d01defd5d23009a4193703ca9 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Fri, 24 May 2024 20:09:09 +0300 Subject: [PATCH] CMake: unbreak version handling for tarballs #1742 changed the placeholder version from `0.0.0` to `v0.0.0`, but this line which was further dealing with it, was not updated. Fixes https://github.com/google/benchmark/issues/1792 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71396edacb..942ce98c58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,7 @@ get_git_version(GIT_VERSION) # If no git version can be determined, use the version # from the project() command -if ("${GIT_VERSION}" STREQUAL "0.0.0") +if ("${GIT_VERSION}" STREQUAL "v0.0.0") set(VERSION "v${benchmark_VERSION}") else() set(VERSION "${GIT_VERSION}")