* Add the proper subsystem version when using a recent MSVC toolchain.

svn path=/trunk/; revision=59854
This commit is contained in:
Amine Khaldi 2013-08-28 12:32:09 +00:00
parent 94d5de635f
commit 0a425e697c

View file

@ -100,7 +100,11 @@ function(set_entrypoint _module _entrypoint)
endfunction()
function(set_subsystem MODULE 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)