Fix 2b244441: [CMake] Regression tests failed if no previous crashes present

On CMake 3.x
This commit is contained in:
Jonathan G Rennison
2025-11-17 17:12:16 +00:00
committed by dP
parent 7a766d96b3
commit 1cbec53e75

View File

@@ -27,7 +27,9 @@ endif()
# Remove previous crash files
file(GLOB CRASH_FILES "regression/crash*")
file(REMOVE ${CRASH_FILES})
if(CRASH_FILES)
file(REMOVE ${CRASH_FILES})
endif()
# Run the regression test
execute_process(COMMAND ${OPENTTD_EXECUTABLE}