mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 17:43:17 +00:00
build: fix logic for version when there is a git tag
This commit is contained in:
parent
ad07c68504
commit
79193ffed2
@ -20,7 +20,7 @@ if(GIT_EXE)
|
||||
COMMAND ${GIT_EXE} name-rev HEAD --tags --name-only --no-undefined --always
|
||||
OUTPUT_VARIABLE ZIG_GIT_REV
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
if(ZIG_GIT_REV MATCHES "\\\\^0$")
|
||||
if(ZIG_GIT_REV MATCHES "\\^0$")
|
||||
if(NOT("${ZIG_GIT_REV}" STREQUAL "${ZIG_VERSION}^0"))
|
||||
message("WARNING: Tag does not match configured Zig version")
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user