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:
committed by
rubidium42
parent
509cbedf0b
commit
a321509d90
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user