Skip to content

Commit

Permalink
build: fix logic for version when there is a git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Oct 17, 2017
1 parent ad07c68 commit 79193ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit 79193ff

Please sign in to comment.