mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +00:00
[CMAKE]
* Add the proper subsystem version when using a recent MSVC toolchain. svn path=/trunk/; revision=59854
This commit is contained in:
parent
94d5de635f
commit
0a425e697c
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ function(set_entrypoint _module _entrypoint)
|
|||
endfunction()
|
||||
|
||||
function(set_subsystem MODULE SUBSYSTEM)
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM}")
|
||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 17)
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.0")
|
||||
else()
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM}")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(set_image_base MODULE IMAGE_BASE)
|
||||
|
|
Loading…
Reference in a new issue