Switch to updated date library exception handling:

Without defining `HAS_UNCAUGHT_EXCEPTIONS` the date library would use the
deprecated `uncaught_exception` which would generate a warning.
This commit is contained in:
seelabs
2020-07-22 20:38:07 -04:00
committed by Nik Bougalis
parent d317060ae4
commit a931b020b5

View File

@@ -125,6 +125,10 @@ target_include_directories (xrpl_core
# this one is for beast/legacy files:
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/beast/extras>
$<INSTALL_INTERFACE:include>)
target_compile_definitions(xrpl_core
PUBLIC
HAS_UNCAUGHT_EXCEPTIONS=1)
target_compile_options (xrpl_core
PUBLIC
$<$<BOOL:${is_gcc}>:-Wno-maybe-uninitialized>)