diff -Naur cmake-3.16.5/Modules/Platform/Windows-GNU.cmake cmake-3.16.5_new/Modules/Platform/Windows-GNU.cmake
--- cmake-3.16.5/Modules/Platform/Windows-GNU.cmake	2020-03-04 21:50:44.000000000 +0800
+++ cmake-3.16.5_new/Modules/Platform/Windows-GNU.cmake	2020-07-28 21:46:20.737684504 +0800
@@ -28,9 +28,11 @@
   set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
   set(CMAKE_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32")
   set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
+  set(CMAKE_DL_LIBS "dl")
+else()
+  set(CMAKE_DL_LIBS "")
 endif()
 
-set(CMAKE_DL_LIBS "")
 set(CMAKE_LIBRARY_PATH_FLAG "-L")
 set(CMAKE_LINK_LIBRARY_FLAG "-l")
 set(CMAKE_LINK_DEF_FILE_FLAG "") # Empty string: passing the file is enough
