Colcon build fails, cmake_minimum_required
Hi,
For a school project I need to use a provided ROS2 workspace, wich contains 2 packages. Both packages have cmake_minimum_required(VERSION 3.18)
statement on top of the CMakeLists.txt
. I installed cmake
version 3.25.1
using snap. I also installed colcon
using this command : sudo apt install python3-colcon-common-extensions
.
When I run colcon build
on the root of the workspace, I get the error : CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.18 or higher is required. You are running version 3.16.3
, but when in my terminal I run cmake --version
, I get : cmake version 3.25.1
I'm pretty new to ROS, maybe I missing something, thanks for your help.
P.S.: I'm using ROS2 Galactic and I'm working on ubuntu 20.04