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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user