poky/meta/recipes-devtools/cmake
Moritz Haase b8f8125f05 cmake: Correctly handle cost data of tests with arbitrary chars in name
ctest automatically optimizes the order of (parallel) test execution based on
historic test case runtime via the COST property (see [0]), which can have a
significant impact on overall test run times. Sadly this feature is broken in
CMake < 4.0.0 for test cases that have spaces in their name (see [1]).

This commit is a backport of f24178f3 (which itself backports the upstream fix).
The patch was adapted slightly to apply cleanly to the older CMake version in
scarthgap. As repeated test runs are expected to mainly take place inside the
SDK, the patch is only applied to 'nativesdk' builds.

[0]: https://cmake.org/cmake/help/latest/prop_test/COST.html
[1]: https://gitlab.kitware.com/cmake/cmake/-/issues/26594

Reported-By: John Drouhard <john@drouhard.dev>
(From OE-Core rev: cfa97a50e06fb0fcc7cbc0ada54ce7ad5ba29ebe)

Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-06-25 08:35:10 -07:00
..
cmake cmake: Correctly handle cost data of tests with arbitrary chars in name 2025-06-25 08:35:10 -07:00
cmake_3.28.3.bb cmake: Correctly handle cost data of tests with arbitrary chars in name 2025-06-25 08:35:10 -07:00
cmake-native_3.28.3.bb cmake: Correctly handle cost data of tests with arbitrary chars in name 2025-06-25 08:35:10 -07:00
cmake.inc cmake: Fix sporadic issues when determining compiler internals 2024-11-18 06:59:35 -08:00