How to fix cmake_minimum_required() deprecation warning?

I find that CMake older than about 3.7 has a hard time with internet-based operations due to old vendored curl TLS that doesn’t work since most web resources use HTTPS. That makes CMake 3.7 an absolute minimum for me. Normally I test via CI no older than about CMake 3.15.