Merge topic 'try_compile-clean-up-tests'

299cd3e6ab try_compile: Clean up tests

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