From fa716784c36827b2886621834becc2b994198d91 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Thu, 17 May 2018 16:06:40 +0800 Subject: add -mwindows in mingw --- CMakeLists.txt.mingw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt.mingw b/CMakeLists.txt.mingw index 0bf2553..118d5c0 100644 --- a/CMakeLists.txt.mingw +++ b/CMakeLists.txt.mingw @@ -1,4 +1,6 @@ #ADD_DEFINITIONS(-DUSE_DOTNET_STYLE) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mwindows") if(FQTERM_USE_STATIC_QT) ADD_DEFINITIONS(-DFQTERM_USE_STATIC_QT) -- cgit v1.2.3