From a3cfbb602365fd1393eb1c943acb2d3096d6c4af Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 22 Oct 2017 02:26:06 -0700 Subject: [PATCH] Only enable windows console subsystem for Debug builds; --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62cd457c..713d13cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,8 +310,9 @@ target_link_libraries(lovr ) if(WIN32) - # Disable warnings about loss of precision for lua_Number set_target_properties(lovr PROPERTIES COMPILE_FLAGS "/wd4244") + set_target_properties(lovr PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE") + set_target_properties(lovr PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") function(move_dll ARG_TARGET) add_custom_command(TARGET lovr POST_BUILD