From deeaccb3d19ff11dced160930a5268ea8bd4afdb Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 20 Jun 2022 09:43:30 +0200 Subject: [PATCH] obs-x264: Disable compiler warnings about non-exhaustive switch cases --- plugins/obs-x264/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/obs-x264/CMakeLists.txt b/plugins/obs-x264/CMakeLists.txt index 09db3f814..2035105e8 100644 --- a/plugins/obs-x264/CMakeLists.txt +++ b/plugins/obs-x264/CMakeLists.txt @@ -16,6 +16,12 @@ target_link_libraries(obs-x264 PRIVATE LIBX264::LIBX264 OBS::opts-parser) set_target_properties(obs-x264 PROPERTIES FOLDER "plugins" PREFIX "") +target_compile_options( + obs-x264 + PRIVATE + $<$,$,$>:-Wno-switch> +) + if(OS_WINDOWS) set(MODULE_DESCRIPTION "OBS x264 encoder") configure_file(${CMAKE_SOURCE_DIR}/cmake/bundle/windows/obs-module.rc.in