diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-03-03 15:39:15 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-03-03 15:39:15 +0300 |
commit | d58a15c0a603a83a416f84def21d5603653e3cba (patch) | |
tree | bf925292c812b13f9f7d1bb3080cca17c4dcc8d0 /CMakeLists.txt | |
parent | b42a3d24853195150130df513353c034ac528933 (diff) |
Windows: Add stacktrace support when unhandled exception occurs.
We need to register the exception handler slightly differently here, as
well as adding DbgHelp as a library, but according to docs it should be
supported in recent Windows editions (Win XP included even).
We can try it first and revert if there are issues.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cdef12cb923..e3fb9584749 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1168,7 +1168,7 @@ elseif(WIN32) set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO") - list(APPEND PLATFORM_LINKLIBS ws2_32 vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shfolder shell32 ole32 oleaut32 uuid psapi) + list(APPEND PLATFORM_LINKLIBS ws2_32 vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shfolder shell32 ole32 oleaut32 uuid psapi Dbghelp) if(WITH_INPUT_IME) list(APPEND PLATFORM_LINKLIBS imm32) @@ -1541,7 +1541,7 @@ elseif(WIN32) endif() endif() - list(APPEND PLATFORM_LINKLIBS -lshell32 -lshfolder -lgdi32 -lmsvcrt -lwinmm -lmingw32 -lm -lws2_32 -lz -lstdc++ -lole32 -luuid -lwsock32 -lpsapi) + list(APPEND PLATFORM_LINKLIBS -lshell32 -lshfolder -lgdi32 -lmsvcrt -lwinmm -lmingw32 -lm -lws2_32 -lz -lstdc++ -lole32 -luuid -lwsock32 -lpsapi -ldbghelp) if(WITH_INPUT_IME) list(APPEND PLATFORM_LINKLIBS -limm32) |