diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-09-20 10:50:45 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-09-20 15:50:08 +0100 |
commit | d6c02fd58feb2b48be13a2405d0eb738ed62925a (patch) | |
tree | c5575e4260de33eb5220c9479ac842bdf191af41 /CMakeLists.txt | |
parent | bd9811ff579a0482bfd7d40b1149bcef40ad3d71 (diff) |
backtrace: Allow to build without libbacktrace.
For apitrace integrated into Regal they want to opt-out of backtrace
support, for now. One reason is that it's fairly platform-specific.
Another concern is potential build issue across various Linux flavors.
Based on Nigel Stewart patch on issue #168.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4566db59..81e5cdcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,6 +269,7 @@ if (CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF") add_subdirectory (thirdparty/libbacktrace) include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libbacktrace) set (LIBBACKTRACE_LIBRARIES dl backtrace) + add_definitions (-DHAVE_BACKTRACE=1) endif () # Always use bundled QJSon. |