Fix MacUpdater build on CMake 3.31+

Building on macOS with a recent CMake version would result in the
following error:

CMake Error at Source/Core/MacUpdater/CMakeLists.txt:48 (add_custom_command):
  The following keywords are not supported when using
  add_custom_command(TARGET): DEPENDS

As it turns out, this form of `add_custom_command` does not accept
DEPENDS, but versions of CMake prior to 3.31 silently dropped it.
This commit is contained in:
Sintendo
2026-01-17 18:25:22 +01:00
parent 9ec1d70f51
commit eedee51b93

View File

@@ -47,7 +47,6 @@ foreach(sb ${STORYBOARDS})
set(input ${CMAKE_CURRENT_SOURCE_DIR}/${sb})
add_custom_command(TARGET MacUpdater POST_BUILD
COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text --compile ${output} ${input}
DEPENDS ${input}
COMMENT "Compiling Storyboard ${sb}...")
endforeach()