FindBacktrace.cmake 269 Bytes
Newer Older
1 2 3 4 5
include(CheckSymbolExists)

CHECK_SYMBOL_EXISTS ( "backtrace" "execinfo.h" BACKTRACE_EXISTS )
if ( NOT BACKTRACE_EXISTS )
	set ( BACKTRACE_EXISTS FALSE )
6
	message ( WARNING "Backtrace symbol not found in execinfo.h." )
7 8 9
else ( )
	set ( BACKTRACE_EXISTS TRUE )
endif ( )