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
This commit is contained in:
Jay Weisskopf 2018-06-15 14:06:56 -04:00 committed by Andrew Kelley
parent f0697c28f8
commit b3a3e2094e

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}")