aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-05-07 17:37:45 +0200
committerRiccardo Spagni <ric@spagni.net>2019-05-07 17:37:46 +0200
commit9573a2bfd3b58b5f9ab5b3e49d98d34269c78a13 (patch)
treecb1ee0b4310cda77f586c964f3fb1b128ac15942
parentMerge pull request #5510 (diff)
parentcmake: fix some case of "backtrace lib not found" breaking (diff)
downloadmonero-9573a2bfd3b58b5f9ab5b3e49d98d34269c78a13.tar.xz
Merge pull request #5506
7d5cc035 cmake: fix some case of "backtrace lib not found" breaking (moneromooo-monero)
-rw-r--r--cmake/FindBacktrace.cmake8
1 files changed, 8 insertions, 0 deletions
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")