1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 04:34:16 +01:00

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 rubidium42
parent 509cbedf0b
commit a321509d90

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}