84a160
Index: cmake-3.17.0-rc1/Modules/Platform/Windows-GNU.cmake
84a160
===================================================================
84a160
--- cmake-3.17.0-rc1.orig/Modules/Platform/Windows-GNU.cmake
84a160
+++ cmake-3.17.0-rc1/Modules/Platform/Windows-GNU.cmake
84a160
@@ -25,12 +25,14 @@ endif()
84a160
 
84a160
 if(MINGW)
84a160
   set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
84a160
-  set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a" ".lib")
84a160
+  set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
84a160
   set(CMAKE_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32")
84a160
   set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
84a160
+  set(CMAKE_DL_LIBS "dl")
84a160
+else()
84a160
+  set(CMAKE_DL_LIBS "")
84a160
 endif()
84a160
 
84a160
-set(CMAKE_DL_LIBS "")
84a160
 set(CMAKE_LIBRARY_PATH_FLAG "-L")
84a160
 set(CMAKE_LINK_LIBRARY_FLAG "-l")
84a160
 set(CMAKE_LINK_DEF_FILE_FLAG "") # Empty string: passing the file is enough