From 3f2aad12cdfd2e14d38e526007f26e2ff2dd49ea Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 20 Jun 2022 09:43:50 +0200 Subject: [PATCH] obs-ffmpeg: Disable compiler warnings about non-exhaustive switch cases --- plugins/obs-ffmpeg/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/obs-ffmpeg/CMakeLists.txt b/plugins/obs-ffmpeg/CMakeLists.txt index c482ef191..239ecf31a 100644 --- a/plugins/obs-ffmpeg/CMakeLists.txt +++ b/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 + $<$,$,$>:-Wno-switch> +) if(OS_WINDOWS) if(MSVC)