From 62ca01e1813803539f8889907f5a65c3bd6bcef0 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 20 Jun 2022 09:44:18 +0200 Subject: [PATCH] libcaption: Disable compiler warnings about non-exhaustive switch cases --- deps/libcaption/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deps/libcaption/CMakeLists.txt b/deps/libcaption/CMakeLists.txt index 97d1c8a17..2d1653655 100644 --- a/deps/libcaption/CMakeLists.txt +++ b/deps/libcaption/CMakeLists.txt @@ -25,7 +25,13 @@ target_sources( target_compile_definitions( caption PRIVATE __STDC_CONSTANT_MACROS - "$<$:_CRT_SECURE_NO_WARNINGS>") + $<$:_CRT_SECURE_NO_WARNINGS>) + +target_compile_options( + caption + PRIVATE + $<$,$,$>:-Wno-unused-but-set-parameter> +) target_include_directories( caption