Browse Source

obs-ffmpeg: Disable compiler warnings about non-exhaustive switch cases

PatTheMav 3 years ago
parent
commit
3f2aad12cd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/obs-ffmpeg/CMakeLists.txt

+ 5 - 0
plugins/obs-ffmpeg/CMakeLists.txt

@@ -56,6 +56,11 @@ endif()
 
 set_target_properties(obs-ffmpeg PROPERTIES FOLDER "plugins/obs-ffmpeg" PREFIX
                                                                         "")
+target_compile_options(
+  obs-ffmpeg
+  PRIVATE
+    $<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:GNU>>:-Wno-switch>
+)
 
 if(OS_WINDOWS)
   if(MSVC)