This approach allows us to maintain compatibility with the minimum supported CMake version 3.5,
while suppressing all policy warnings up to the latest version 3.31.
Fixed this deprecation warning:
``
CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of CMake.
``