diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-11-07 22:51:07 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-11-07 22:51:07 -0500 |
commit | f41f3f96657644b12a32d2211110dea1b60aa1f0 (patch) | |
tree | b055ebfaa444d073252c2f5f9d7836e7d0509fb8 /third_party/backtrace-mingw/CMakeLists.txt | |
parent | a42be43a3aa5e1494267f3ae93d70a37afe48673 (diff) | |
download | QMidiPlayer-f41f3f96657644b12a32d2211110dea1b60aa1f0.tar.xz |
Fixes for backtrace.
(How did this thing work in the first place?)
Instead of dumping the stack trace into stderr, it is now redirected
to backtrace.log in the working directory.
Fixed symbol names for amd64. It probably won't work on i386 anymore.
Diffstat (limited to 'third_party/backtrace-mingw/CMakeLists.txt')
-rw-r--r-- | third_party/backtrace-mingw/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/backtrace-mingw/CMakeLists.txt b/third_party/backtrace-mingw/CMakeLists.txt index 394d420..1258617 100644 --- a/third_party/backtrace-mingw/CMakeLists.txt +++ b/third_party/backtrace-mingw/CMakeLists.txt @@ -1,11 +1,15 @@ add_library(backtrace SHARED backtrace.c) find_path(BFD_INCLUDE_DIR NAMES bfd.h) +include_directories(${BFD_INCLUDE_DIR}) find_library(BFD_LIBRARIES NAMES bfd) find_library(IBERTY_LIBRARIES NAMES iberty) +find_library(INTL_LIBRARIES NAMES intl) find_package(ZLIB REQUIRED) +set_target_properties(backtrace PROPERTIES PREFIX "") target_link_libraries(backtrace ${BFD_LIBRARIES} ${IBERTY_LIBRARIES} + ${INTL_LIBRARIES} ${ZLIB_LIBRARIES} imagehlp ) |