Index: fltk-1.3.8/CMake/setup.cmake =================================================================== --- fltk-1.3.8.orig/CMake/setup.cmake +++ fltk-1.3.8/CMake/setup.cmake @@ -57,13 +57,15 @@ set (FLTK_DOCDIR ${CMAKE_INSTALL_DATADIR ####################################################################### # set where config files go -if (WIN32 AND NOT CYGWIN) +if (MINGW) + set (FLTK_CONFIG_PATH ${FLTK_DATADIR}/cmake/fltk) +elseif (WIN32 AND NOT CYGWIN) set (FLTK_CONFIG_PATH CMake) elseif (APPLE AND NOT OPTION_APPLE_X11) set (FLTK_CONFIG_PATH FLTK.framework/Resources/CMake) else () set (FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk CACHE FILEPATH "Install location for cmake files.") -endif (WIN32 AND NOT CYGWIN) +endif (MINGW) include(TestBigEndian) TEST_BIG_ENDIAN(WORDS_BIGENDIAN)