From 34c29ea88b8e9f6dead1a39cebe652f994ac0608 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 3 Jan 2016 02:17:44 +0100 Subject: [PATCH] Show warning on missing backtrace libs --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0af5296..cc00d5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,10 @@ if( NOT IMLIB_BUILD_WITH_X ) message( FATAL_ERROR "Imlib is not built with X support" ) endif( NOT IMLIB_BUILD_WITH_X ) +if( NOT BACKTRACE_LIBC_FOUND AND NOT UNWIND_FOUND AND NOT EXECINFO_FOUND ) + message( WARNING "Backtrace support not available. You can enable it with libexecinfo/libunwind or libc." ) +endif() + add_definitions( -D_GNU_SOURCE ) include_directories( ${PROJECT_BINARY_DIR}