mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[CMAKE]
* Apply the 5.01 subsystem version regardless of cl version. All the supported MSVC toolchains accept it. svn path=/trunk/; revision=61756
This commit is contained in:
parent
793f6fe43d
commit
52da71702d
1 changed files with 3 additions and 7 deletions
|
@ -130,14 +130,10 @@ function(set_entrypoint _module _entrypoint)
|
|||
endfunction()
|
||||
|
||||
function(set_subsystem MODULE SUBSYSTEM)
|
||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 17)
|
||||
if(ARCH STREQUAL "amd64")
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.02")
|
||||
else()
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.01")
|
||||
endif()
|
||||
if(ARCH STREQUAL "amd64")
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.02")
|
||||
else()
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM}")
|
||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.01")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in a new issue