浏览代码

cmake: disable MSVC RUNTIME CHECKS for no-libc shared SDL2 library

Anonymous Maarten 2 月之前
父节点
当前提交
bc518123c7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -3471,6 +3471,7 @@ if(SDL_SHARED)
     if(HAS_Q_NO_USE_LIBIRC)
     if(HAS_Q_NO_USE_LIBIRC)
       target_compile_options(SDL2 PRIVATE /Q_no-use-libirc)
       target_compile_options(SDL2 PRIVATE /Q_no-use-libirc)
     endif()
     endif()
+    set_property(TARGET SDL2 PROPERTY MSVC_RUNTIME_CHECKS "")
   endif()
   endif()
   if(APPLE)
   if(APPLE)
     # FIXME: Remove SOVERSION in SDL3
     # FIXME: Remove SOVERSION in SDL3