Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit cf63191672
)
r14.0.x
parent
08cea68d1a
commit
443e9d7cf5
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
##### check if GLIBC >= 2.1 compatible backtrace facility exists
|
||||||
|
|
||||||
|
if ( CMAKE_MAJOR_VERSION LESS "3" )
|
||||||
|
check_symbol_exists( backtrace "execinfo.h" HAVE_BACKTRACE )
|
||||||
|
if ( HAVE_BACKTRACE )
|
||||||
|
set ( Backtrace_LIBRARY "" )
|
||||||
|
set ( Backtrace_HEADER "execinfo.h" )
|
||||||
|
endif ()
|
||||||
|
else ()
|
||||||
|
find_package( Backtrace )
|
||||||
|
if ( Backtrace_FOUND )
|
||||||
|
set ( HAVE_BACKTRACE 1 CACHE INTERNAL "" )
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
if( NOT HAVE_BACKTRACE )
|
||||||
|
tde_message_fatal( "bactrace function is required but not available on your system")
|
||||||
|
endif()
|
Loading…
Reference in new issue