CMake 3.31 has begun emitting CMP0175 [1] when you call add_custom_command with invalid keywords. While `MAIN_DEPENDENCY` is a valid keyword for `add_custom_command(OUTPUT)` [2] it is not for `add_custom_command(TARGET)` [3] proper fix is to remove the offending parameters. [1] https://cmake.org/cmake/help/latest/policy/CMP0175.html [2] https://cmake.org/cmake/help/latest/command/add_custom_command.html#generating-files [3] https://cmake.org/cmake/help/latest/command/add_custom_command.html#build-events Pull Request: https://projects.blender.org/blender/blender/pulls/130565