Skip to contentSkip to conversation

fmt: disable buiding the tests

PATCH In review Ross Burton 1 participant 2 messages Jan 17, 2025 – Jan 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-devtools/fmt/fmt_11.1.1.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/fmt/fmt_11.1.1.bb +5 -0
index a99a377ad4a..19888366a4e 100644
@@ -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"
Signature · 1 line
2.43.0
#1 lore raw

I retract this, the problem has now been fixed upstream and there is some value on building the tests even if we don’t run them. I shall backport the fix instead.

Ross