diff --git a/CMakeLists.txt b/CMakeLists.txt
index f063418aea019b82fc1c14926f085f7a33fe905c..c1229ff1ddef712703c69e310b094ed9a37b4d74 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,6 +91,7 @@ ENDIF()
 IF(POLICY CMP0056)
   CMAKE_POLICY(SET CMP0056 NEW)
 ENDIF()
+SET(CMAKE_LEGACY_CYGWIN_WIN32 0)
 
 #-----------------------------------------------------------------------------
 # If a namespace is not specified, use "kwsys" and enable testing.