diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e5fb1c5bf..143070d213 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3471,6 +3471,7 @@ if(SDL_SHARED) if(HAS_Q_NO_USE_LIBIRC) target_compile_options(SDL2 PRIVATE /Q_no-use-libirc) endif() + set_property(TARGET SDL2 PROPERTY MSVC_RUNTIME_CHECKS "") endif() if(APPLE) # FIXME: Remove SOVERSION in SDL3