From fbbf93f9ef20c8e6eca397bffb92d520c650e2cd Mon Sep 17 00:00:00 2001 From: Arthur Uzulin Date: Fri, 1 Jan 2016 21:01:59 +1100 Subject: [PATCH] Add cheaty support for Cygwin versions of CMake --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 024fbdca1..3ed691ed4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,11 @@ option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON) option(GLFW_INSTALL "Generate installation target" ON) option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF) +if (CYGWIN) + message(STATUS "Cygwin detected, defining WIN32") + set(WIN32 ON) +endif() + if (WIN32) option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF) endif()