Browse Source

Use correct CMake option for allowing exceptions in unit tests [pre-commit]

Michael Ragazzon 6 months ago
parent
commit
b36fb92f6a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMake/DependenciesForTests.cmake

+ 1 - 1
CMake/DependenciesForTests.cmake

@@ -19,6 +19,6 @@ include("${PROJECT_SOURCE_DIR}/Tests/Dependencies/doctest/cmake/doctest.cmake")
 if(MSVC)
 	target_compile_definitions(doctest::doctest INTERFACE DOCTEST_CONFIG_USE_STD_HEADERS)
 endif()
-if(NOT RMLUI_RTTI_AND_EXCEPTIONS)
+if(RMLUI_CUSTOM_RTTI)
 	target_compile_definitions(doctest::doctest INTERFACE DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS)
 endif()