Skip to content

Commit

Permalink
cmake: link to dbghelp, psapi and msvcr90 on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Aug 6, 2021
1 parent 8bf0e1c commit 146e2ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BackwardConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ if (NOT _BACKWARD_DEFINITIONS)
map_definitions("STACK_DETAILS_" "BACKWARD_HAS_" BACKTRACE_SYMBOL DW BFD DWARF)
endif()

if(WIN32)
list(APPEND _BACKWARD_LIBRARIES dbghelp psapi)
if(MINGW)
set(MINGW_MSVCR_LIBRARY "msvcr90$<$<CONFIG:DEBUG>:d>" CACHE STRING "Mingw MSVC runtime import library")
list(APPEND _BACKWARD_LIBRARIES ${MINGW_MSVCR_LIBRARY})
endif()
endif()

set(BACKWARD_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}")

set(BACKWARD_HAS_EXTERNAL_LIBRARIES FALSE)
Expand Down

0 comments on commit 146e2ed

Please sign in to comment.