diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch index d6b3146a9d..4118887cb9 100644 --- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch +++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch @@ -26,7 +26,7 @@ Signed-off-by: Khem Raj add_compile_options(-Wno-error=nonnull-compare) endif() -+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") ++if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18.1) + add_compile_options(-Wno-error=vla-cxx-extension) +endif() +