From 9d407eebf0a5c793a8c989a30deabaee295ea177 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 3 Jan 2016 02:28:51 +0100 Subject: [PATCH] Attempt to fix execinfo lookup on BSD --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc00d5b..697013a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,8 +31,11 @@ if(BACKTRACE_LIBC) set(BACKTRACE_L_FLAGS "-rdynamic") else() pkg_check_modules( UNWIND libunwind ) - pkg_check_modules( EXECINFO execinfo ) - set(BACKTRACE_L_FLAGS "") + find_library(EXECINFO_LIBRARIES NAMES execinfo) + if(EXECINFO_LIBRARIES) + set(EXECINFO_FOUND TRUE) + set(BACKTRACE_L_FLAGS "-rdynamic") + endif() endif() if( ENABLE_RSVG )