2576bb
diff -rupN cmake-3.10.1/Modules/Platform/Windows-GNU.cmake cmake-3.10.1-new/Modules/Platform/Windows-GNU.cmake
2576bb
--- cmake-3.10.1/Modules/Platform/Windows-GNU.cmake	2017-12-13 14:25:23.000000000 +0100
2576bb
+++ cmake-3.10.1-new/Modules/Platform/Windows-GNU.cmake	2017-12-30 15:32:03.253515499 +0100
2576bb
@@ -28,9 +28,11 @@ if(MINGW)
2576bb
   set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
2576bb
   set(CMAKE_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32")
2576bb
   set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
2576bb
+  set(CMAKE_DL_LIBS "dl")
2576bb
+else()
2576bb
+  set(CMAKE_DL_LIBS "")
2576bb
 endif()
2576bb
 
2576bb
-set(CMAKE_DL_LIBS "")
2576bb
 set(CMAKE_LIBRARY_PATH_FLAG "-L")
2576bb
 set(CMAKE_LINK_LIBRARY_FLAG "-l")
2576bb
 set(CMAKE_LINK_DEF_FILE_FLAG "") # Empty string: passing the file is enough