From 7975b84a6821b0b5dbc22be3d9880f9281b8d184 Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Tue, 6 May 2025 22:53:10 -0700 Subject: [PATCH] Configure ETL to throw exceptions --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ad4ab1..b2cd755 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,10 +16,13 @@ if (EXCEPTIONS STREQUAL OFF) message("NO RTTI") endif() +add_compile_definitions(ETL_THROW_EXCEPTIONS) add_link_options("-Wl,--print-memory-usage") add_executable(${PROJECT_NAME}) +set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17) + # Normal source and header files file(GLOB proj_sources LIST_DIRECTORIES false CONFIGURE_DEPENDS src/*.cpp src/*.c src/*.s) set(proj_include "include")