Explorar o código

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

Anonymous Maarten hai 2 días
pai
achega
bc518123c7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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