From 7d5cc0358b241f84776ffbbdfd9010490157e8ea Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 1 May 2019 10:10:47 +0000 Subject: cmake: fix some case of "backtrace lib not found" breaking It fixes at least one case of building on ARM with Docker --- cmake/FindBacktrace.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/FindBacktrace.cmake b/cmake/FindBacktrace.cmake index 89bbad07c..8137125ab 100644 --- a/cmake/FindBacktrace.cmake +++ b/cmake/FindBacktrace.cmake @@ -83,6 +83,14 @@ else() set(_Backtrace_STD_ARGS Backtrace_LIBRARY ${_Backtrace_STD_ARGS}) endif() +message(STATUS "Backtrace_LIBRARY: ${Backtrace_LIBRARY}") +if(Backtrace_LIBRARY STREQUAL "NOTFOUND") + set(Backtrace_LIBRARY "") +endif() +if(Backtrace_LIBRARY STREQUAL "Backtrace_LIBRARY-NOTFOUND") + set(Backtrace_LIBRARY "") +endif() + set(Backtrace_LIBRARIES ${Backtrace_LIBRARY}) set(Backtrace_HEADER "${_Backtrace_HEADER_TRY}" CACHE STRING "Header providing backtrace(3) facility") -- cgit v1.2.3