Disable stack unwinding for mingw32 depends build.

This commit is contained in:
TheCharlatan 2018-03-20 00:35:47 +01:00 committed by wowario
parent 40ef32a937
commit 30531812de
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -366,6 +366,9 @@ add_definitions("-DBLOCKCHAIN_DB=${BLOCKCHAIN_DB}")
if (APPLE) if (APPLE)
set(DEFAULT_STACK_TRACE OFF) set(DEFAULT_STACK_TRACE OFF)
set(LIBUNWIND_LIBRARIES "") 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) elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
set(DEFAULT_STACK_TRACE ON) set(DEFAULT_STACK_TRACE ON)
set(STACK_TRACE_LIB "easylogging++") # for diag output only set(STACK_TRACE_LIB "easylogging++") # for diag output only