mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +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()
|
endfunction()
|
||||||
|
|
||||||
function(set_subsystem MODULE SUBSYSTEM)
|
function(set_subsystem MODULE SUBSYSTEM)
|
||||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 17)
|
if(ARCH STREQUAL "amd64")
|
||||||
if(ARCH STREQUAL "amd64")
|
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.02")
|
||||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.02")
|
|
||||||
else()
|
|
||||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.01")
|
|
||||||
endif()
|
|
||||||
else()
|
else()
|
||||||
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM}")
|
add_target_link_flags(${MODULE} "/SUBSYSTEM:${SUBSYSTEM},5.01")
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue