From 76cb6414f6961f38a318185e486213c7446224d8 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Thu, 10 Sep 2020 10:11:41 -0400 Subject: [PATCH] [cmake] Properly suppress comma subscript warning on both clang and gcc --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1de305..9d7a0ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,12 +103,15 @@ target_compile_options(${PROJECT_NAME}_warnings -Wextra -Wpedantic -Wno-sign-compare - -Wno-deprecated-comma-subscript - -Wno-unknown-warning-option + $<$:-Wno-comma-subscript> $<$:-Wshadow=local> $<$:-Wno-attributes> + $<$:-Wno-deprecated-comma-subscript> + $<$:-Wno-unknown-warning-option> $<$:-Wshadow> $<$:-Wno-gcc-compat> + $<$:-Wno-deprecated-comma-subscript> + $<$:-Wno-unknown-warning-option> $<$:-Wshadow> $<$:-Wno-gcc-compat> )