aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2022-08-17 20:04:43 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2022-08-17 20:04:43 +0200
commit3ad5f3e22ef647e26882130a62e91e8f8b4216bc (patch)
tree18e080c04120ef35088bfaf5b6f87f7d286453f7
parent5baf5fe77b15451055300fcd235197f47fbf154a (diff)
Fix Windows debug builds not having a console because something, probably some library's CMake script, sets -mwindows when it shouldn't.
-rw-r--r--src/frontend/qt_sdl/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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 $<CONFIG:Release>)
+ set_target_properties(melonDS PROPERTIES LINK_FLAGS_DEBUG "-mconsole")
endif()
if (PORTABLE)