add_dependencies: Document behavior under Ninja generators

Closes: #25796
1 file changed