From 1358d397e411fe1366c999cc7ac30e8c6df5a247 Mon Sep 17 00:00:00 2001 From: dhewg Date: Tue, 20 Dec 2011 01:22:51 +0100 Subject: [PATCH] Link MinGW binaries with -mwindows mingw-w64 requires this when linking gui applications. --- neo/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 3c75222f..3f8197d2 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -179,7 +179,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang") set(ldflags ${ldflags} "-m32") endif() - if (NOT MINGW) + if (MINGW) + set(ldflags ${ldflags} "-mwindows") + else() set(sys_libs ${sys_libs} pthread) endif()