Linters for CMake emit the following warning regarding the cmake_minimum_required() directive:
CMake Deprecation Warning:
Compatibility with CMake < 3.10 will be removed from a future version of CMake.
This indicates that the current cmake_minimum_required(VERSION 3.5) is targeting a version that will soon be deprecated.
Suggested fix
Update CMakeLists.txt to set a more modern and appropriate minimum version:
cmake_minimum_required(VERSION 3.16)
Rationale
- CMake 3.16 was released in 2019 and is stable and well-supported.
- Ubuntu 20.04 (Focal), used in many robotics environments (e.g., ROS1 Noetic), ships with CMake 3.16.3.
- Raising the minimum version improves compatibility with modern tooling and silences the warning emitted by linters.
If there's interest, I can submit a PR with this change.