From: Vladimír Vondruš Date: Thu, 30 May 2013 13:47:05 +0000 (+0100) Subject: libbacktrace: Fix compilation failure (issue #137). X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d39581fd05b7569b2acf278e1339d63e5cbf34ff;p=apitrace libbacktrace: Fix compilation failure (issue #137). It seems that elf.c for some reason includes snappy/config.h instead of its own generated config.h, possbily due to wrong order of include directories. Solved it by explicitly including ${CMAKE_CURRENT_BINARY_DIR} before all other paths. --- diff --git a/thirdparty/libbacktrace/CMakeLists.txt b/thirdparty/libbacktrace/CMakeLists.txt index d6b4e10..ccad8d6 100644 --- a/thirdparty/libbacktrace/CMakeLists.txt +++ b/thirdparty/libbacktrace/CMakeLists.txt @@ -123,8 +123,10 @@ configure_file (backtrace-supported.h.in backtrace-supported.h) configure_file (config.h.in.cmake config.h) -include_directories ( +include_directories (BEFORE ${CMAKE_CURRENT_BINARY_DIR} +) +include_directories ( auxincl ) add_library (backtrace STATIC EXCLUDE_FROM_ALL