Make `zig version` compliant with SemVer (#1113)

The git revision is build metadata and should be appended with a plus sign.

https://semver.org/#spec-item-10
master
Jay Weisskopf 2018-06-15 14:06:56 -04:00 committed by Andrew Kelley
parent f0697c28f8
commit b3a3e2094e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ if(GIT_EXE)
message("WARNING: Tag does not match configured Zig version")
endif()
else()
set(ZIG_VERSION "${ZIG_VERSION_MAJOR}.${ZIG_VERSION_MINOR}.${ZIG_VERSION_PATCH}.${ZIG_GIT_REV}")
set(ZIG_VERSION "${ZIG_VERSION}+${ZIG_GIT_REV}")
endif()
endif()
message("Configuring zig version ${ZIG_VERSION}")