try_compile: Add NO_CACHE option (also try_run)

Merged Matthew Woehlke requested to merge matthew-woehlke/cmake:try_compile-no-cache into master

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

Issue: #22799 (closed)

Edited by Brad King

Merge request reports