From 2689901637c331f51d515b9b9aef97801a607b3b Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 7 Mar 2024 17:48:44 -0800 Subject: [PATCH] Suppress gcc warning about anon structs --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a8534d..07422e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") list(APPEND TEST_FLAGS -Wno-gnu-anonymous-struct -Wno-nested-anon-types) endif() +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + list(APPEND TEST_FLAGS -fms-extensions) +endif() + include(CTest) if(BUILD_TESTING)