Find provider for backtrace(3).
Checks if OS supports backtrace(3) via either libc or custom library. This module defines the following variables:
Backtrace_HEADER
Backtrace_INCLUDE_DIRS
Backtrace_LIBRARIES
Backtrace_FOUND
The following cache variables are also available to set or use:
Backtrace_LIBRARY
Backtrace_INCLUDE_DIR
Typical usage is to generate of header file using configure_file() with the contents like the following:
#cmakedefine01 Backtrace_FOUND #if Backtrace_FOUND # include <${Backtrace_HEADER}> #endif
And then reference that generated header file in actual source.
© 2000–2016 Kitware, Inc.
© 2000–2011 Insight Software Consortium
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.5/module/FindBacktrace.html