Ninja generator was incorrectly marking dependencies as out of date.

Setting the generated as an implicit dependency of cmake caused errors when
we generated directories on machines as part of the build process. We can fix
this by moving these to be order only dependencies.
Merge topic 'ninja_fix_rerun' into next

ea9c30e Ninja generator was incorrectly marking dependencies as out of date.