Fix FTBFS when backtrace is not found.

If backtrace is not found - for example, with Musl C library,
then Backtrace_LIBRARY instead of empty value contains
Backtrace_LIBRARY-NOT_FOUND. This results in all libraries
listed in LINK_PRIVATE for tdecore-shared are ignored.

This resolves FTBFS on Dragora and issue TDE/tde-packaging-gentoo#277.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/126/head
Slávek Banko 2 years ago
parent 819074a379
commit 02670b9418
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -377,6 +377,9 @@ else ()
find_package( Backtrace ) find_package( Backtrace )
if ( Backtrace_FOUND ) if ( Backtrace_FOUND )
set ( HAVE_BACKTRACE 1 ) set ( HAVE_BACKTRACE 1 )
else ()
set ( Backtrace_LIBRARY "" )
set ( Backtrace_HEADER "" )
endif () endif ()
endif () endif ()
check_cxx_source_compiles( "#include <cxxabi.h> check_cxx_source_compiles( "#include <cxxabi.h>

Loading…
Cancel
Save