From 393a61337f14ccadb8501e94e6d0fdabffab4339 Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Sat, 11 Nov 2023 18:21:29 +0100 Subject: [PATCH] meh --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b386f51..7590d707 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,10 @@ target_precompile_headers( target_include_directories( monkey_lib PUBLIC "$") target_compile_definitions(monkey_lib PUBLIC DOCTEST_CONFIG_SUPER_FAST_ASSERTS) +if(MSVC) + target_compile_definitions(monkey_lib + PUBLIC DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS) +endif() target_compile_features(monkey_lib PUBLIC cxx_std_20) target_link_libraries(monkey_lib PRIVATE fmt::fmt doctest::doctest doctest::dll)