From 8e4aa143d918cac7b7051792de04dd5554525a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 23 Sep 2021 11:32:05 +0200 Subject: Fix backtrace detection with CMake 2.x. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kmtrace/ConfigureChecks.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kmtrace/ConfigureChecks.cmake') diff --git a/kmtrace/ConfigureChecks.cmake b/kmtrace/ConfigureChecks.cmake index 5c06aac6..476e63b2 100644 --- a/kmtrace/ConfigureChecks.cmake +++ b/kmtrace/ConfigureChecks.cmake @@ -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 ) -- cgit v1.2.1