CMake does not set the compiler option -std to gnu17 or c++17 although I set the target_compile_features to cxx_std_17

Brad linked to the 3.23 docs. I suspect that 3.23 might be where that behavior was introduced.