Show warning on missing backtrace libs

This commit is contained in:
o9000 2016-01-03 02:17:44 +01:00
parent b210675893
commit 34c29ea88b

View file

@ -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}