diff -Naur glog-0.4.0-orig/CMakeLists.txt glog-0.4.0/CMakeLists.txt
--- glog-0.4.0-orig/CMakeLists.txt	2019-03-22 05:51:46.000000000 +0300
+++ glog-0.4.0/CMakeLists.txt	2019-06-10 12:18:43.403717800 +0300
@@ -475,9 +475,9 @@
   target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY})
 endif (UNWIND_LIBRARY)
 
-if (HAVE_DBGHELP)
+if (HAVE_DBGHELP OR MINGW)
    target_link_libraries (glog PUBLIC dbghelp)
-endif (HAVE_DBGHELP)
+endif (HAVE_DBGHELP OR MINGW)
 
 if (HAVE_PTHREAD)
   target_link_libraries (glog PUBLIC ${CMAKE_THREAD_LIBS_INIT})
