diff --git a/contrib/ports/CMakeCommon.cmake b/contrib/ports/CMakeCommon.cmake index 47e86657..37b989af 100644 --- a/contrib/ports/CMakeCommon.cmake +++ b/contrib/ports/CMakeCommon.cmake @@ -53,12 +53,12 @@ set(LWIP_COMPILER_FLAGS_GNU_CLANG -Wshadow -Wpointer-arith -Wcast-qual - -Wc++-compat + $<$:-Wc++-compat> -Wwrite-strings - -Wold-style-definition + $<$:-Wold-style-definition> -Wcast-align - -Wmissing-prototypes - -Wnested-externs + $<$:-Wmissing-prototypes> + $<$:-Wnested-externs> -Wunreachable-code -Wuninitialized -Wmissing-prototypes @@ -80,7 +80,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU") if (NOT LWIP_HAVE_MBEDTLS) list(APPEND LWIP_COMPILER_FLAGS_GNU_CLANG - -Wc90-c99-compat + $<$:-Wc90-c99-compat> ) endif()