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:
parent
77326cc78f
commit
43d7fee538
1 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue