Skip to content

Commit afdb06c

Browse files
CMake/convert_shaders_to_headers: drop MAIN_DEPENDENCY to fix duplicate CustomBuild item in VS
1 parent 32b3de7 commit afdb06c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BuildUtils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function(convert_shaders_to_headers _SHADERS _SHADER_OUTPUT_DIR _SHADERS_LIST_FI
1616
set(CONVERTED_FILE ${_SHADER_OUTPUT_DIR}/${FILE_NAME}.h)
1717
add_custom_command(OUTPUT ${CONVERTED_FILE}
1818
COMMAND ${Python3_EXECUTABLE} ${FILE2STRING_PATH} ${FILE} ${CONVERTED_FILE}
19-
MAIN_DEPENDENCY ${FILE} # the primary input source file to the command
19+
DEPENDS ${FILE}
2020
COMMENT "Processing shader ${FILE}"
2121
VERBATIM)
2222

0 commit comments

Comments
 (0)