From 0bfea85680dc227e3e2d9a34b0b5e004a64ebaec Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 4 Sep 2015 14:40:15 +0000 Subject: [PATCH] [BOOTMGFW] Set the subsystem differently between GCC and MSVC builds. svn path=/trunk/; revision=68995 --- reactos/boot/environ/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/boot/environ/CMakeLists.txt b/reactos/boot/environ/CMakeLists.txt index 241f4ca8645..3506aabbb4a 100644 --- a/reactos/boot/environ/CMakeLists.txt +++ b/reactos/boot/environ/CMakeLists.txt @@ -50,7 +50,13 @@ else() endif() set_image_base(bootmgfw 0x10000) -set_subsystem(bootmgfw 10) + +if(MSVC) + set_subsystem(bootmgfw EFI_APPLICATION) +else() + set_subsystem(bootmgfw 10) +endif() + set_entrypoint(bootmgfw EfiEntry) target_link_libraries(bootmgfw bootmgr_common cportlib cmlib rtl libcntpr)