Set correct image version

This commit is contained in:
Rafal Kupiec 2022-12-29 22:37:39 +01:00
parent 7f21e4f19c
commit 58527ce5cb
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -77,8 +77,9 @@ function(set_imagebase MODULE IMAGEBASE)
add_module_linker_flags(${MODULE} "/BASE:${IMAGEBASE}") add_module_linker_flags(${MODULE} "/BASE:${IMAGEBASE}")
endfunction() endfunction()
# This functions sets PE/COFF subsystem of the binary # This functions sets PE/COFF subsystem and XTOS version of the binary
function(set_subsystem MODULE SUBSYSTEM) function(set_subsystem MODULE SUBSYSTEM)
string(TOUPPER ${SUBSYSTEM} SUBSYSTEM) string(TOUPPER ${SUBSYSTEM} SUBSYSTEM)
add_module_linker_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},6.03") add_module_linker_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},6.03")
add_module_linker_flags(${MODULE} "/VERSION:6.03")
endfunction() endfunction()