Skip to content

Commit b3a3e20

Browse files
jayschwaandrewrk
authored andcommittedJun 15, 2018
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
·
0.15.20.3.0
1 parent f0697c2 commit b3a3e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if(GIT_EXE)
3030
message("WARNING: Tag does not match configured Zig version")
3131
endif()
3232
else()
33-
set(ZIG_VERSION "${ZIG_VERSION_MAJOR}.${ZIG_VERSION_MINOR}.${ZIG_VERSION_PATCH}.${ZIG_GIT_REV}")
33+
set(ZIG_VERSION "${ZIG_VERSION}+${ZIG_GIT_REV}")
3434
endif()
3535
endif()
3636
message("Configuring zig version ${ZIG_VERSION}")

0 commit comments

Comments
 (0)
Please sign in to comment.