From 572ced8b85965d864fdf68418c49ace3aeefcaeb Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 9 May 2025 15:41:34 +0200 Subject: [PATCH] Avoid build failures when removing or renaming a resource --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36e06938b5..f3099723fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}"