Fix Windows debug builds not having a console because something, probably some library's CMake script, sets -mwindows when it shouldn't.

This commit is contained in:
Nadia Holmquist Pedersen 2022-08-17 20:04:43 +02:00
parent 5baf5fe77b
commit 3ad5f3e22e
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ elseif (WIN32)
target_sources(melonDS PUBLIC "${CMAKE_SOURCE_DIR}/melon.rc") target_sources(melonDS PUBLIC "${CMAKE_SOURCE_DIR}/melon.rc")
target_link_libraries(melonDS PRIVATE ws2_32 iphlpapi) 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() endif()
if (PORTABLE) if (PORTABLE)