From 663c7f51f5f8cf1256f49d845248f4fc755524c2 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Wed, 7 Apr 2021 10:01:46 -0500 Subject: [PATCH] don't set -Wconditionally-supported on older gcc --- cmake/compiler/gcc/settings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 497db5a17..c8e55e7d6 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -1,7 +1,7 @@ target_compile_options(zm-warning-interface INTERFACE -Wall - -Wconditionally-supported + $<$,5.0>:-Wconditionally-supported> -Wextra -Wformat-security -Wno-cast-function-type