Skip to content

Commit 79193ff

Browse files
committed
build: fix logic for version when there is a git tag
1 parent ad07c68 commit 79193ff

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
@@ -20,7 +20,7 @@ if(GIT_EXE)
2020
COMMAND ${GIT_EXE} name-rev HEAD --tags --name-only --no-undefined --always
2121
OUTPUT_VARIABLE ZIG_GIT_REV
2222
OUTPUT_STRIP_TRAILING_WHITESPACE)
23-
if(ZIG_GIT_REV MATCHES "\\\\^0$")
23+
if(ZIG_GIT_REV MATCHES "\\^0$")
2424
if(NOT("${ZIG_GIT_REV}" STREQUAL "${ZIG_VERSION}^0"))
2525
message("WARNING: Tag does not match configured Zig version")
2626
endif()

0 commit comments

Comments
 (0)