VS: add_dependencies adds a link dependency for VisualStudio targets
The attached file highlights an issue with add_dependencies (you may need file1.cpp and file2.cpp for CMake to run, building is out of scope anyway). The documentation for add_dependencies(A B) states that it only induces a build order, ensuring that A builds after B. However, at least under the latest VisualStudio generator, this function call also induces a link reference from A to B.
I have here a terrible refactoring hack (to remove an even more terrible thing) where A is directly #using "B.dll" for accessing functionality and must not have a link dependency. I would like to declare the build order then, but this seems not to be possible.
Edited by Brad King