1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 03:05:24 +01:00

Avoid build failures when removing or renaming a resource

This commit is contained in:
Gymnasiast
2025-05-09 15:41:34 +02:00
parent cee133e03d
commit 572ced8b85

View File

@@ -398,7 +398,7 @@ if (NOT CMAKE_CROSSCOMPILING)
foreach(graphics_file ${graphics_files})
set(output_file "${graphics_file}.dat")
set(json_file "${ROOT_DIR}/resources/${graphics_file}/sprites.json")
file(GLOB_RECURSE dependent_files "${ROOT_DIR}/resources/${graphics_file}/*")
file(GLOB_RECURSE dependent_files CONFIGURE_DEPENDS "${ROOT_DIR}/resources/${graphics_file}/*")
add_custom_command(
OUTPUT ${output_file}
COMMAND ./openrct2-cli sprite build "${CMAKE_BINARY_DIR}/${output_file}" "${json_file}"