aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-14 10:49:17 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-15 14:47:00 +0100
commitef35cb23539ac1984373ad5e6775c7fd26d6f948 (patch)
treea47b1c3259ed15ff56a63fc2db37c93f3daa37d9 /src/CMakeLists.txt
parentd8584fc8d78f1e97dfef214416d826b9f764c2e0 (diff)
downloadmonzero-core-crash-pl.tar.gz
monzero-core-crash-pl.tar.xz
monzero-core-crash-pl.zip
optional boost stacktrace to get stack traces on mac and windows toocrash-pl
Thanks to iDunk for lots of testing to get this to work on Windows
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3b71c38cd..4cbdf1510 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -53,14 +53,10 @@ function (monero_install_headers subdir)
endfunction ()
function (enable_stack_trace target)
- if(STACK_TRACE)
- set_property(TARGET ${target}
- APPEND PROPERTY COMPILE_DEFINITIONS "STACK_TRACE")
- if (STATIC)
- set_property(TARGET "${target}"
- APPEND PROPERTY LINK_FLAGS "-Wl,--wrap=__cxa_throw")
- endif()
- endif()
+ if (STATIC AND STACK_TRACE_ON_EXCEPTIONS)
+ set_property(TARGET "${target}"
+ APPEND PROPERTY LINK_FLAGS "-Wl,--wrap=__cxa_throw")
+ endif()
endfunction()
function (monero_add_executable name)