From ce5b10936a29e4fb8a8a1d1b2f217b8df81b9b81 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 22 Nov 2010 06:32:08 +0000
Subject: [PATCH] fix for mingw

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e6c8b91d0..1ca56c7f26 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -888,12 +888,12 @@ target_link_libraries(gmsh ${LINK_LIBRARIES})
 
 # increase stack to 16Mb on Windows to avoid overflows in recursive
 # tet classification for large 3D Delaunay grids
-if(CYGWIN)
+if(WIN32 AND NOT MSVC)
   set_target_properties(gmsh PROPERTIES LINK_FLAGS 
     "-Wl,--stack,16777216 ${CMAKE_CURRENT_SOURCE_DIR}/Fltk/Win32Icon.res -mwindows")
 elseif(MSVC)
   set_target_properties(gmsh PROPERTIES LINK_FLAGS "/STACK:16777216")
-endif(CYGWIN)
+endif(WIN32 AND NOT MSVC)
 
 find_program(BISON bison)
 find_program(FLEX flex)
-- 
GitLab