* 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:
Amine Khaldi 2014-01-22 22:46:30 +00:00
parent 793f6fe43d
commit 52da71702d

View file

@ -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()