09b85a
diff -Naur cmake-3.18.2.orig/Modules/Platform/Windows-GNU.cmake cmake-3.18.2/Modules/Platform/Windows-GNU.cmake
09b85a
--- cmake-3.18.2.orig/Modules/Platform/Windows-GNU.cmake	2020-09-08 13:30:51.186087690 +0000
09b85a
+++ cmake-3.18.2/Modules/Platform/Windows-GNU.cmake	2020-09-10 07:42:22.458698539 +0000
09b85a
@@ -28,9 +28,11 @@
09b85a
   set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a" ".lib")
bc5d70
   set(CMAKE_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32")
bc5d70
   set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
bc5d70
+  set(CMAKE_DL_LIBS "dl")
bc5d70
+else()
bc5d70
+  set(CMAKE_DL_LIBS "")
bc5d70
 endif()
bc5d70
 
bc5d70
-set(CMAKE_DL_LIBS "")
bc5d70
 set(CMAKE_LIBRARY_PATH_FLAG "-L")
bc5d70
 set(CMAKE_LINK_LIBRARY_FLAG "-l")
bc5d70
 set(CMAKE_LINK_DEF_FILE_FLAG "") # Empty string: passing the file is enough