Skip to content

Commit

Permalink
Make zig version compliant with SemVer (#1113)
Browse files Browse the repository at this point in the history
The git revision is build metadata and should be appended with a plus sign.

https://semver.org/#spec-item-10
  • Loading branch information
jayschwa authored and andrewrk committed Jun 15, 2018
1 parent f0697c2 commit b3a3e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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}")
Expand Down

0 comments on commit b3a3e20

Please sign in to comment.