Merge topic 'GoogleTest-discovery-clutter' into release-4.4

b5f555f687 GoogleTest: Avoid cluttering custom working directory during discovery

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12155