mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
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:
parent
f0697c28f8
commit
b3a3e2094e
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user