This method ensure that all users of glog get automatically linked to
the DbgHelp library without needing to set compiler flags.
if (WIN32)
set (HAVE_STACKTRACE 1)
set (HAVE_SYMBOLIZE 1)
- target_link_libraries (glog PUBLIC Dbghelp.lib)
endif (WIN32)
if (UNIX OR (APPLE AND HAVE_DLADDR))
#if defined(OS_WINDOWS)
#include <DbgHelp.h>
+#pragma comment(lib, "DbgHelp")
#endif
_START_GOOGLE_NAMESPACE_
#elif defined(OS_WINDOWS)
#include <DbgHelp.h>
+#pragma comment(lib, "DbgHelp")
_START_GOOGLE_NAMESPACE_