CMake 4.0 compatibility: raise minimum cmake versions to 3.5.
Compare changes
CMake 4.0 drops compatibility with CMake<3.5 code, breaking the build. I blindly increased the minimum version number in the affected files and obtained a fixed OF build.