cmGeneratorTarget: Use the output directory to order cmTargets.

The output directory must be unique, but the source directory
of an add_subdirectory call may be re-used.
Merge topic 'use-generator-target' into next

a60cd3d cmGeneratorTarget: Use the output directory to order cmTargets.