diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-11-04 16:15:24 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-11-04 16:15:24 +0100 |
commit | 02670b9418632d6d5c7143a6336d03fb4a05999e (patch) | |
tree | cb0a3d2d98c54a1427e709e584e7a7ff85d222a9 | |
parent | 819074a37969e373fa04bcdc306dcaa79cf31782 (diff) | |
download | tdelibs-02670b9418632d6d5c7143a6336d03fb4a05999e.tar.gz tdelibs-02670b9418632d6d5c7143a6336d03fb4a05999e.zip |
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>
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6733ad83a..38ce5f045 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -377,6 +377,9 @@ else () find_package( Backtrace ) if ( Backtrace_FOUND ) set ( HAVE_BACKTRACE 1 ) + else () + set ( Backtrace_LIBRARY "" ) + set ( Backtrace_HEADER "" ) endif () endif () check_cxx_source_compiles( "#include <cxxabi.h> |