[CMAKE] The /SUBSYSTEM flag takes uppercase parameters.
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 12 May 2015 12:18:02 +0000 (12:18 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 12 May 2015 12:18:02 +0000 (12:18 +0000)
svn path=/trunk/; revision=67689

reactos/cmake/msvc.cmake

index f32a72a..520b55b 100644 (file)
@@ -210,10 +210,11 @@ function(set_entrypoint _module _entrypoint)
 endfunction()
 
 function(set_subsystem MODULE SUBSYSTEM)
+    string(TOUPPER ${SUBSYSTEM} _subsystem)
     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")
+        add_target_link_flags(${MODULE} "/SUBSYSTEM:${_subsystem},5.01")
     endif()
 endfunction()