SDL: Applied 0004-Define-crt-macros.patch.txt from vcpkg ports

From 0c19602118a54f36979dc00d262c604130f9a43f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 6 May 2022 07:59:36 -0700
Subject: [PATCH] Applied 0004-Define-crt-macros.patch.txt from vcpkg ports

---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff430ab4c63..a4a736f94ab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -627,6 +627,11 @@ if(USE_GCC OR USE_CLANG)
     endif()
   endif()
 endif()
+if(MSVC)
+  target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_SECURE_NO_DEPRECATE")
+  target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_NONSTDC_NO_DEPRECATE")
+  target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_SECURE_NO_WARNINGS")
+endif()
 
 if(SDL_ASSEMBLY)
   if(USE_GCC OR USE_CLANG)