aboutsummaryrefslogtreecommitdiff
path: root/backend/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'backend/CMakeLists.txt')
-rw-r--r--backend/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt
index 2d5cc82..0f983d0 100644
--- a/backend/CMakeLists.txt
+++ b/backend/CMakeLists.txt
@@ -44,6 +44,12 @@ include(RCCBackendDeveloperTools)
option(RCC_BACKEND_BUILD_TESTS "Build RCC Backend tests" "${BUILD_TESTING}")
option(RCC_BACKEND_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF)
option(RCC_BACKEND_ENABLE_CLANG_TIDY "Run clang-tidy during each compilation" OFF)
+option(RCC_BACKEND_ENABLE_EH "Enable C++ exception handling" OFF)
+option(RCC_BACKEND_ENABLE_RTTI "Enable C++ run-time type information" OFF)
+
+if(RCC_BACKEND_ENABLE_EH AND NOT RCC_BACKEND_ENABLE_RTTI)
+ message(FATAL_ERROR "RCC Backend exception handling requires RTTI")
+endif()
rcc_backend_initialize_toolchain()