Windows 7 crash, added an option to CMake :

If stdio redirection is enabled compile with WIN32 (windows app with no console)
else when no redirection we need a console app to write all the stdio
This commit is contained in:
ChefKeeper 2017-10-28 13:26:18 +02:00 committed by Tim Felgentreff
parent 77326cc78f
commit 43d7fee538

View file

@ -1082,7 +1082,10 @@ add_custom_command(OUTPUT tolua.cpp
VERBATIM
)
add_executable(stratagus WIN32 ${stratagus_SRCS} ${stratagus_HDRS})
if (ENABLE_STDIO_REDIRECT)
add_executable(stratagus WIN32 ${stratagus_SRCS} ${stratagus_HDRS})
else
add_executable(stratagus ${stratagus_SRCS} ${stratagus_HDRS})
target_link_libraries(stratagus ${stratagus_LIBS})
if(CMAKE_BUILD_TYPE STREQUAL "Debug")