diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c4c140..3d6e790 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,12 @@ set(SLADE_OUTPUT_DIR ${CMAKE_BINARY_DIR} CACHE PATH "Directory where slade will OPTION(NO_WEBVIEW "Disable wxWebview usage (for start page and documentation)" OFF) OPTION(USE_SFML_RENDERWINDOW "Use SFML RenderWindow for OpenGL displays" OFF) +OPTION(USE_WX_EXCEPTION_HANDLER "Turn on wxWidget's fatal exception handler" OFF) + +if(USE_WX_EXCEPTION_HANDLER) + add_definitions(-DwxUSE_ON_FATAL_EXCEPTION=1) +endif(USE_WX_EXCEPTION_HANDLER) + if(NOT APPLE) OPTION(WX_GTK3 "Use GTK3 (if wx is built with it)" ON) endif(NOT APPLE)