CMake: Bundle FindBacktrace since its missing from older versions.

This commit is contained in:
EmptyChaos
2016-07-19 13:15:28 +10:00
parent d5bc3c9a12
commit f57cb1bb31
2 changed files with 125 additions and 2 deletions
+3 -2
View File
@@ -902,8 +902,9 @@ if(NOT DISABLE_WX)
# Check for required libs
check_lib(GTHREAD2 gthread-2.0 gthread-2.0 glib/gthread.h REQUIRED)
check_lib(PANGOCAIRO pangocairo pangocairo pango/pangocairo.h REQUIRED)
find_package(Backtrace)
# On Linux "backtrace" is part of glibc. FreeBSD has a separate library.
# Required for wxUSE_STACKWALKER in Externals/wxWidgets3/wx/wxgtk.h
find_package(Backtrace REQUIRED)
elseif(WIN32)
add_definitions(-D__WXMSW__)
else()