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