Attempt to fix compilation on BSD

This commit is contained in:
o9000 2016-01-03 03:25:40 +01:00
parent 7079d70e8b
commit 07256c0ed3

View file

@ -32,7 +32,7 @@ if(BACKTRACE_LIBC)
else()
pkg_check_modules( UNWIND libunwind )
find_library(EXECINFO_LIBRARIES NAMES execinfo)
if(EXECINFO_LIBRARIES)
if(EXECINFO_LIBRARIES OR EXECINFO_LIBRARIES_FOUND)
set(EXECINFO_FOUND TRUE)
set(EXECINFO_LIBRARIES "-lexecinfo")
set(BACKTRACE_L_FLAGS "-rdynamic")