summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-04-24 17:49:41 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-04-24 21:16:06 +0200
commite62ecbff16a1470aac2bb0dc830cdf129d1fb539 (patch)
treeb6e2ab3547c40c13f4673bce59edfceb983089cb
parent75386873b77df4f3493edd5bbba92b33007bdd21 (diff)
downloadopenttd-e62ecbff16a1470aac2bb0dc830cdf129d1fb539.tar.xz
Fix: [CMake] Incorrect dependency checks for GRF
-rw-r--r--cmake/CreateGrfCommand.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/CreateGrfCommand.cmake b/cmake/CreateGrfCommand.cmake
index 4ad973419..107ec09b8 100644
--- a/cmake/CreateGrfCommand.cmake
+++ b/cmake/CreateGrfCommand.cmake
@@ -35,9 +35,9 @@ function(create_grf_command)
-DNFORENUM_EXECUTABLE=${NFORENUM_EXECUTABLE}
-DGRFCODEC_EXECUTABLE=${GRFCODEC_EXECUTABLE}
-P ${CMAKE_SOURCE_DIR}/cmake/scripts/CreateGRF.cmake
- MAIN_DEPENDENCY ${GRF_NFO_SOURCE_FILES}
+ MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/cmake/scripts/CreateGRF.cmake
DEPENDS ${GRF_PNG_BINARY_FILES}
- ${CMAKE_SOURCE_DIR}/cmake/scripts/CreateGRF.cmake
+ ${GRF_NFO_SOURCE_FILES}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating ${GRF_SOURCE_FOLDER_NAME}.grf"
)