]> git.ipfire.org Git - thirdparty/dbus.git/commit
cmake: Detect backtrace() support on platforms such as FreeBSD
authorAlex Richardson <arichardson.kde@gmail.com>
Sun, 20 Mar 2022 23:25:29 +0000 (23:25 +0000)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 24 Mar 2022 13:41:19 +0000 (13:41 +0000)
commit3f5bdf0c2df3fb2b15f7dde246bf035bfae4d37a
treefa12923cc196359814a26718cab4f87ac7cc410c
parent1312fd5f81be41f632fdbd391d4d4be709f28f24
cmake: Detect backtrace() support on platforms such as FreeBSD

On FreeBSD use of backtrace requires linking libexecinfo. The current
check_symbol_exists() will fail due to that missing library. Fortunately,
CMake ships with a FindBacktrace module (at least since 3.0) that can
be used to correctly handle platforms such as FreeBSD (and OpenBSD
according to the FindBacktrace source).
cmake/ConfigureChecks.cmake
dbus/CMakeLists.txt