aboutsummaryrefslogtreecommitdiff
path: root/third_party/backtrace-mingw/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/backtrace-mingw/CMakeLists.txt')
-rw-r--r--third_party/backtrace-mingw/CMakeLists.txt4
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
)