Skip to content

Commit

Permalink
Set SUBSYSTEM CONSOLE for Windows system
Browse files Browse the repository at this point in the history
This allows Windows users to actually see the output of spring-dedicated.exe without having to redirect it.
This is already done correctly for spring-headless, but for some reason it seems it was forgotten for spring-dedicated.
  • Loading branch information
Yaribz committed Jan 11, 2021
1 parent abc2a5f commit 860cc95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rts/builds/dedicated/CMakeLists.txt
Expand Up @@ -179,6 +179,11 @@ if (MSVC)
endif (MSVC)
add_dependencies(engine-dedicated generateVersionFiles)

if (MINGW)
# To enable console output/force a console window to open
set_target_properties(engine-dedicated PROPERTIES LINK_FLAGS "-Wl,-subsystem,console")
endif (MINGW)

install(TARGETS engine-dedicated DESTINATION ${BINDIR})

# Only build & install spring-dedicated executable & dependencies
Expand Down

0 comments on commit 860cc95

Please sign in to comment.