From 30531812de319467b27e9272829ad39a7c7c1cbe Mon Sep 17 00:00:00 2001 From: TheCharlatan <seb.kung@gmail.com> Date: Tue, 20 Mar 2018 00:35:47 +0100 Subject: [PATCH] Disable stack unwinding for mingw32 depends build. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3091866f6..5dd841fe3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -366,6 +366,9 @@ add_definitions("-DBLOCKCHAIN_DB=${BLOCKCHAIN_DB}") if (APPLE) set(DEFAULT_STACK_TRACE OFF) set(LIBUNWIND_LIBRARIES "") +elseif (DEPENDS AND NOT LINUX) + set(DEFAULT_STACK_TRACE OFF) + set(LIBUNWIND_LIBRARIES "") elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW) set(DEFAULT_STACK_TRACE ON) set(STACK_TRACE_LIB "easylogging++") # for diag output only