Allow to set XT subsystem when producing binaries
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-06 16:18:04 +01:00
parent b22a76e3c4
commit 3f54c9b37e
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -82,4 +82,8 @@ function(set_subsystem MODULE SUBSYSTEM)
string(TOUPPER ${SUBSYSTEM} SUBSYSTEM)
add_module_linker_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},6.03")
add_module_linker_flags(${MODULE} "/VERSION:6.03")
if(${ARGC} EQUAL 3)
set(XTSUBSYSTEM ${ARGN})
add_custom_command(TARGET ${MODULE} POST_BUILD COMMAND exetool "$<TARGET_FILE:${MODULE}>" ${XTSUBSYSTEM})
endif()
endfunction()