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)