From 52da71702d1e430b37a5f989188986f3f4e9d1c4 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 22 Jan 2014 22:46:30 +0000 Subject: [PATCH] [CMAKE] * Apply the 5.01 subsystem version regardless of cl version. All the supported MSVC toolchains accept it. svn path=/trunk/; revision=61756 --- reactos/cmake/msvc.cmake | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/reactos/cmake/msvc.cmake b/reactos/cmake/msvc.cmake index 9d3bb81b7f4..6e789698986 100644 --- a/reactos/cmake/msvc.cmake +++ b/reactos/cmake/msvc.cmake @@ -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()