compile_features: compute better inferred standard level
requested to merge robertmaynard/cmake:correctly_compute_compiler_standard_level_for_paired_language into master
Instead of naively assuming the inferred default level is supported, compute the nearest standard level that the compiler has support for.
Issue: #22297 (closed)
Topic-rename: paired-language-standard
Edited by Brad King