diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-01 10:10:47 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-01 10:11:41 +0000 |
commit | 7d5cc0358b241f84776ffbbdfd9010490157e8ea (patch) | |
tree | 3d778f798680966458084c48f2010ca154e97461 /cmake | |
parent | Merge pull request #5486 (diff) | |
download | monero-7d5cc0358b241f84776ffbbdfd9010490157e8ea.tar.xz |
cmake: fix some case of "backtrace lib not found" breaking
It fixes at least one case of building on ARM with Docker
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindBacktrace.cmake | 8 |
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") |