try_compile: Add NO_CACHE option (also try_run)

Add NO_CACHE option to try_compile and try_run, which places the results
in regular, rather than cache, variables.

Issue: #22799
7 files changed