Skip to content

Commit d77b692

Browse files
LebedevRIdmah42
andauthored
CMake: unbreak version handling for tarballs (#1793)
#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 <[email protected]>
1 parent 144d23c commit d77b692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ get_git_version(GIT_VERSION)
104104

105105
# If no git version can be determined, use the version
106106
# from the project() command
107-
if ("${GIT_VERSION}" STREQUAL "0.0.0")
107+
if ("${GIT_VERSION}" STREQUAL "v0.0.0")
108108
set(VERSION "v${benchmark_VERSION}")
109109
else()
110110
set(VERSION "${GIT_VERSION}")

0 commit comments

Comments
 (0)