Fix invalid DEPENDS in add_custom_command

Closes #5.
This commit is contained in:
Darryl Pogue 2024-12-03 21:19:53 -08:00
parent 0f0d7bebe0
commit bf9b206c00
No known key found for this signature in database
GPG key ID: CB824715C3E6FD41

View file

@ -42,8 +42,8 @@ function(target_embed_metal_shader_libraries TARGET)
)
else()
foreach(SHADERLIB IN LISTS _temsl_UNPARSED_ARGUMENTS)
add_dependencies(${TARGET} ${SHADERLIB})
add_custom_command(TARGET ${TARGET} POST_BUILD
DEPENDS ${SHADERLIB}
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:${SHADERLIB}>" "$<TARGET_BUNDLE_CONTENT_DIR:${TARGET}>/Resources/$<TARGET_FILE_NAME:${SHADERLIB}>"
VERBATIM
)