Author: akhaldi
Date: Wed Aug 28 12:32:09 2013
New Revision: 59854
URL:
http://svn.reactos.org/svn/reactos?rev=59854&view=rev
Log:
[CMAKE]
* Add the proper subsystem version when using a recent MSVC toolchain.
Modified:
trunk/reactos/cmake/msvc.cmake
Modified: trunk/reactos/cmake/msvc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=59854…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Wed Aug 28 12:32:09 2013
@@ -100,7 +100,11 @@
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)