Ubuntu 20.04 LTS has reached the End of Standard Support. There no longer appear to be compelling reasons to maintain compatibility with CMake 3.16. The new suggested minimum, CMake 3.22, is shipped with Ubuntu 22.04 LTS, which is supported until April 2027.
This PR also introduces new CMake policies, from CMP0098 to CMP0128. Some of these may warrant the reviewers’ attention:
- CMP0099: Link properties are transitive over private dependencies of static libraries.
- CMP0117: MSVC RTTI flag /GR is not added to CMAKE_CXX_FLAGS by default.
- CMP0126: set(CACHE) does not remove a normal variable of the same name.
- CMP0128: Selection of language standard and extension flags improved.