cmake: add -Dversion-string flag to zig build command

This commit is contained in:
Andrew Kelley 2022-09-12 20:13:00 -07:00
parent 011663eea5
commit 2434cb6f06

View File

@ -1055,6 +1055,7 @@ set(ZIG_INSTALL_ARGS "build"
${ZIG_SINGLE_THREADED_ARG}
"-Dtarget=${ZIG_TARGET_TRIPLE}"
"-Dcpu=${ZIG_TARGET_MCPU}"
"-Dversion-string=${ZIG_VERSION}"
)
add_custom_target(stage3 ALL