--- a/CMake/setup.cmake
+++ b/CMake/setup.cmake
@@ -93,13 +93,13 @@
 #######################################################################
 
 # set where config files go
-if(WIN32 AND NOT CYGWIN)
+if(MSVC)
   set(FLTK_CONFIG_PATH CMake)
 elseif(APPLE AND NOT FLTK_BACKEND_X11)
   set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk)
 else()
   set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk)
-endif(WIN32 AND NOT CYGWIN)
+endif()
 
 include(TestBigEndian)
 TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
