--- stxxl/CMakeLists.txt.orig	2014-10-23 23:27:08.306800000 +0400
+++ stxxl/CMakeLists.txt	2014-10-23 23:27:18.946000000 +0400
@@ -110,7 +110,7 @@
 set(INSTALL_INCLUDE_DIR "include" CACHE PATH "Installation directory for header files")
 set(INSTALL_PKGCONFIG_DIR "lib/pkgconfig" CACHE PATH "Installation directory for pkg-config file")
 
-if(WIN32 AND NOT CYGWIN)
+if(WIN32 AND NOT CYGWIN AND NOT MINGW)
   set(DEF_INSTALL_CMAKE_DIR "CMake")
 else()
   set(DEF_INSTALL_CMAKE_DIR "lib/cmake/stxxl")
