From 9a53af4068fd7f7627f8af193f551c1f2b5d4ac4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 26 Aug 2016 08:17:42 -0400 Subject: [PATCH] Do not build libuv on Cygwin Currently libuv does not support Cygwin (see libuv issue 832) in part due to lack of pthread APIs: https://cygwin.com/cygwin-api/std-notimpl.html --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b62f6a589..9176049ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -481,6 +481,9 @@ int main(void) { return 0; } if(NOT HAVE_CoreServices_OS_X_10_5) set(CMAKE_USE_LIBUV 0) endif() + elseif(CYGWIN) + # libuv does not support Cygwin + set(CMAKE_USE_LIBUV 0) endif() endif() if(CMAKE_USE_LIBUV)