higher level exception handling on Windows
This commit is contained in:
parent
2a4e8baa28
commit
565fb8c003
|
@ -515,8 +515,8 @@ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|||
|
||||
IF(MSVC)
|
||||
# set default compiler settings
|
||||
#SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GF /GY")
|
||||
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa")
|
||||
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /EHa")
|
||||
# set default libs
|
||||
SET (CMAKE_C_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib winspool.lib SHFolder.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ")
|
||||
set (CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}")
|
||||
|
|
|
@ -984,7 +984,7 @@ void Application::init(int argc, char ** argv)
|
|||
std::signal(SIGABRT,segmentation_fault_handler);
|
||||
std::set_terminate(my_terminate_handler);
|
||||
std::set_unexpected(unexpection_error_handler);
|
||||
_set_se_translator(my_trans_func);
|
||||
// _set_se_translator(my_trans_func);
|
||||
#endif
|
||||
|
||||
initTypes();
|
||||
|
|
Loading…
Reference in New Issue
Block a user