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.
This commit is contained in:
Garmelon 2026-03-23 15:23:47 +01:00 committed by GitHub
parent aef0cea683
commit 482d7a11f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()