From 482d7a11f27e2e7f3c120b89e08fc56215a1fe53 Mon Sep 17 00:00:00 2001 From: Garmelon Date: Mon, 23 Mar 2026 15:23:47 +0100 Subject: [PATCH] chore: handle empty dirs more gracefully (#13062) This PR demotes the cmake error to a warning because it tends to get triggered by a combination of add_dir_of_test_dirs and git checkout not removing untracked files. --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e9637c73d2..ada3293b2d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -85,7 +85,7 @@ function(check_test_bench_scripts DIR) if(NOT RUN_TEST_EXISTS AND NOT RUN_BENCH_EXISTS) cmake_path(RELATIVE_PATH DIR) - message(FATAL_ERROR "${DIR}: Found neither a run_test nor a run_bench file") + message(AUTHOR_WARNING "${DIR}: Found neither a run_test nor a run_bench file") return() endif()