Fix 2b244441: [CMake] Regression tests failed if no previous crashes present
On CMake 3.x
This commit is contained in:
@@ -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