[cmake-developers] [CMake 0014264]: FindBacktrace.cmake to find backtrace() implementation
Mantis Bug Tracker
mantis at public.kitware.com
Wed Jul 3 08:22:55 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14264
======================================================================
Reported By: Vadim Zhukov
Assigned To:
======================================================================
Project: CMake
Issue ID: 14264
Category: Modules
Reproducibility: N/A
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-07-03 08:22 EDT
Last Modified: 2013-07-03 08:22 EDT
======================================================================
Summary: FindBacktrace.cmake to find backtrace()
implementation
Description:
Using backtrace() become somewhat tricky when going multi-platform. On some
systems (e.g., GNU/Linux), it resides in libc itself and requires
<execinfo.h>; on other (e.g., OpenBSD) it's provided by a separate
library, libexecinfo, but with the same header; and sometimes (NetBSD, IIRC) it
even needs a different header - <backtrace.h>.
Additional Information:
This module was initially created while porting Clementine to OpenBSD and
successfully survived for a few release updates already.
The similar modules could be found in other software, for example:
https://github.com/nfs-ganesha/nfs-ganesha/pull/27
https://github.com/CTSRD-TESLA/TESLA/blob/master/cmake/Modules/FindExecInfo.cmake
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-07-03 08:22 Vadim Zhukov New Issue
2013-07-03 08:22 Vadim Zhukov File Added: FindBacktrace.cmake
======================================================================
More information about the cmake-developers
mailing list