From 87fa5da91e52a7f253a9fba1922189f8b0f7bc40 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 11 May 2013 07:51:11 +0000
Subject: [PATCH] don't warn that WIN32 is not defined on cygwin

---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fba034d83..7ec949c391 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,9 @@
 
 cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
 
+# do not warn about non-definition of WIN32 on cygwin
+set(CMAKE_LEGACY_CYGWIN_WIN32 0) 
+
 # if CMAKE_BUILD_TYPE is specified use it; otherwise set the default
 # build type to "RelWithDebInfo" ("-O2 -g" with gcc) prior to calling
 # project()
-- 
GitLab