From fba726673beb2734cba1bf24d448dd57c4f46b57 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 17 Jan 2025 13:04:02 +0000 Subject: [PATCH] fmt: disable buiding the tests We don't run or install the tests so there's limited value in building them, and one of the tests is currently failing to build in fmt-native on ubuntu 20.04 systems, presumably due the g++ 9.4 being old. Filed upstream as https://github.com/fmtlib/fmt/issues/4313. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand --- meta/recipes-devtools/fmt/fmt_11.1.1.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-devtools/fmt/fmt_11.1.1.bb b/meta/recipes-devtools/fmt/fmt_11.1.1.bb index a99a377ad4a1..19888366a4ed 100644 --- a/meta/recipes-devtools/fmt/fmt_11.1.1.bb +++ b/meta/recipes-devtools/fmt/fmt_11.1.1.bb @@ -13,4 +13,9 @@ inherit cmake EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON" +# The tests fail to compile on ubuntu 20.04 in fmt 11.1, so disable building +# them as we don't run them. +# https://github.com/fmtlib/fmt/issues/4313 +EXTRA_OECMAKE += "-DFMT_TEST=OFF" + BBCLASSEXTEND = "native nativesdk"