[evolution-data-server] Correct ENABLE_BACKTRACES configure option handling
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Correct ENABLE_BACKTRACES configure option handling
- Date: Tue, 8 Nov 2016 17:28:45 +0000 (UTC)
commit 61b774173ead1935dace60f7155133f1163ac95d
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 8 18:28:50 2016 +0100
Correct ENABLE_BACKTRACES configure option handling
CMakeLists.txt | 6 +++---
src/camel/CMakeLists.txt | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06be584..cc23917 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -526,9 +526,9 @@ add_printable_option(ENABLE_BACKTRACES "Enable backtraces for camel_pointer_trac
if(ENABLE_BACKTRACES)
CHECK_C_SOURCE_COMPILES("#include <execinfo.h>
- int main(void) { void *bt[1]; backtrace_symbols (bt, backtrace(bt, 1));
return 0; }" _have_bsf)
+ int main(void) { void *bt[1]; backtrace_symbols (bt, backtrace (bt, 1));
return 0; }" HAVE_BACKTRACE_SYMBOLS)
- if(_have_bsf)
+ if(HAVE_BACKTRACE_SYMBOLS)
set(CMAKE_REQUIRED_LIBRARIES -ldw)
CHECK_C_SOURCE_COMPILES("#include <elfutils/libdwfl.h>
int main(void) {
@@ -555,7 +555,7 @@ if(ENABLE_BACKTRACES)
set(HAVE_ELFUTILS_LIBDWFL ON)
set(LIBDWFL_LIBS "-ldw")
endif(_have_elfdwlf)
- endif(_have_bsf)
+ endif(HAVE_BACKTRACE_SYMBOLS)
endif(ENABLE_BACKTRACES)
# ******************************
diff --git a/src/camel/CMakeLists.txt b/src/camel/CMakeLists.txt
index 481f102..a45e2ca 100644
--- a/src/camel/CMakeLists.txt
+++ b/src/camel/CMakeLists.txt
@@ -307,7 +307,7 @@ target_link_libraries(camel
${SOCKET_LDFLAGS}
${ICONV_LDFLAGS}
${REGEX_LDFLAGS}
- ${LIBDWFL_LDFLAGS}
+ ${LIBDWFL_LIBS}
)
install(TARGETS camel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]