From f89253434fd3f61db4014ca56cff3253e8ff5978 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Mon, 4 Feb 2019 19:01:11 +0000 Subject: [PATCH] cmake: detect Cygwin which needs extensions to build --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6775ef3..afe79593 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,9 @@ if (CMAKE_VERSION VERSION_LESS "3.1") else() set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) - set(CMAKE_CXX_EXTENSIONS OFF) + if(NOT CYGWIN) + set(CMAKE_CXX_EXTENSIONS OFF) + endif() endif() if (POLICY CMP0048)