diff --git a/CMakeLists.txt b/CMakeLists.txt index d79cfffbc..e0506dcb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -698,6 +698,7 @@ if (WIN32) list(APPEND DEPENDENCIES_LIBRARIES shlwapi) if (NOT MSVC) list(APPEND DEPENDENCIES_LIBRARIES -static) + list(APPEND DEPENDENCIES_LINK_OPTIONS "-mconsole") endif() endif() @@ -742,7 +743,7 @@ if (WARNINGS_ARE_ERRORS) endif() if (MSVC) - add_executable(furnace WIN32 ${USED_SOURCES}) + add_executable(furnace ${USED_SOURCES}) elseif(ANDROID AND NOT TERMUX) add_library(furnace SHARED ${USED_SOURCES}) else() diff --git a/src/main.cpp b/src/main.cpp index 5c668a9eb..984494f78 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -591,6 +591,6 @@ int main(int argc, char** argv) { return 0; } -#ifdef _WIN32 -#include "winMain.cpp" -#endif +//#ifdef _WIN32 +//#include "winMain.cpp" +//#endif