Fix backtrace detection with CMake 2.x.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8e4aa143d9)
r14.0.x r14.0.11
Slávek Banko 3 years ago
parent 77081f81b4
commit 24e88945f9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -4,8 +4,8 @@
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" )
set ( Backtrace_LIBRARY "" CACHE STRING "Library providing backtrace(3), empty for default set of libraries" )
set ( Backtrace_HEADER "execinfo.h" CACHE STRING "Header providing backtrace(3) facility" )
endif ()
else ()
find_package( Backtrace )

Loading…
Cancel
Save