From 3ad5f3e22ef647e26882130a62e91e8f8b4216bc Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Wed, 17 Aug 2022 20:04:43 +0200 Subject: Fix Windows debug builds not having a console because something, probably some library's CMake script, sets -mwindows when it shouldn't. --- src/frontend/qt_sdl/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt index 6f95cc5..3089c32 100644 --- a/src/frontend/qt_sdl/CMakeLists.txt +++ b/src/frontend/qt_sdl/CMakeLists.txt @@ -104,7 +104,7 @@ elseif (WIN32) target_sources(melonDS PUBLIC "${CMAKE_SOURCE_DIR}/melon.rc") target_link_libraries(melonDS PRIVATE ws2_32 iphlpapi) - set_target_properties(melonDS PROPERTIES WIN32_EXECUTABLE $) + set_target_properties(melonDS PROPERTIES LINK_FLAGS_DEBUG "-mconsole") endif() if (PORTABLE) -- cgit v1.2.3