Juce_add_binary_data doesn't seem to depend on source files

I’m adding a binary data target like so:

juce_add_binary_data(mydata SOURCES file1 file2)

and everything works until I modify file1 or file2. At that point cmake doesn’t pick up on those changes.

I believe the error is at JUCEUtils.cmake:354 which (in 7.0.5) is:

DEPENDS "${input_file_list}"

I think that should be:

DEPENDS "${input_file_list}" ${JUCE_ARG_SOURCES}


1 Like