Disable Windows console in release mode

Resolves #47
This commit is contained in:
Dan Paulat 2024-06-01 10:03:42 -05:00
parent 32cd672a40
commit fdf7f765e2

View file

@ -535,6 +535,7 @@ set_target_properties(scwx-qt_generate_versions PROPERTIES FOLDER generate)
if (WIN32)
set(APP_ICON_RESOURCE_WINDOWS "${scwx-qt_SOURCE_DIR}/res/scwx-qt.rc")
qt_add_executable(supercell-wx ${EXECUTABLE_SOURCES} ${APP_ICON_RESOURCE_WINDOWS})
set_target_properties(supercell-wx PROPERTIES WIN32_EXECUTABLE $<IF:$<CONFIG:Release>,TRUE,FALSE>)
else()
qt_add_executable(supercell-wx ${EXECUTABLE_SOURCES})
endif()