Skip to content

Commit

Permalink
CMake: unbreak version handling for tarballs (#1793)
Browse files Browse the repository at this point in the history
#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 #1792

Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
  • Loading branch information
LebedevRI and dmah42 committed May 28, 2024
1 parent 144d23c commit d77b692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit d77b692

Please sign in to comment.