Skip to content

Commit

Permalink
CMake: unbreak version handling for tarballs
Browse files Browse the repository at this point in the history
google#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 google#1792
  • Loading branch information
LebedevRI committed May 24, 2024
1 parent a4cf155 commit d17f801
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 d17f801

Please sign in to comment.