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

master
PatTheMav 2022-06-20 09:43:30 +02:00 committed by Matt Gajownik
parent b9237aed29
commit deeaccb3d1
1 changed files with 6 additions and 0 deletions

View File

@ -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
$<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:GNU>>:-Wno-switch>
)
if(OS_WINDOWS)
set(MODULE_DESCRIPTION "OBS x264 encoder")
configure_file(${CMAKE_SOURCE_DIR}/cmake/bundle/windows/obs-module.rc.in