From 4021cccc3e735d707be83fd431473f57614a13d7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 31 Jan 2023 03:44:18 -0800 Subject: Try -Wno-c++20-extensions if -Wno-c++20-attribute-extensions fails --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9a2c859..1b181cac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -270,6 +270,11 @@ else() check_cxx_compiler_flag(-Wno-c++20-attribute-extensions HAVE_WNO_CXX20_ATTR_EXT) if(HAVE_WNO_CXX20_ATTR_EXT) set(C_FLAGS ${C_FLAGS} $<$:-Wno-c++20-attribute-extensions>) + else() + check_cxx_compiler_flag(-Wno-c++20-extensions HAVE_WNO_CXX20_EXT) + if(HAVE_WNO_CXX20_EXT) + set(C_FLAGS ${C_FLAGS} $<$:-Wno-c++20-extensions>) + endif() endif() if(ALSOFT_WERROR) -- cgit v1.2.3