As far as I've understood, I need to use at least CMake 3.1 in order to use C++11. Ubuntu 14.04 comes with 2.8.x.
I followed a guide suggesting that one should install CMake to /opt
, so I have CMake installed to /opt/cmake-3.2.1-Linux-x86_64
and added /opt/cmake-3.2.1-Linux-x86_64/bin
to path (as the first element) in .bashrc.
If I try to apt-get remove cmake
the process wants to remove not only CMake but also ROS (so yes, I've stopped by ubuntu: upgrading software (cmake) - version disambiguation (local compile), only to conclude that I couldn't use the answers)
Result of cmake --version
:
cmake version 3.2.1
Setting minimum required version to 3.1 and running catkin_make
in the same terminal yields:
CMake 3.1 or higher is required. You are running version 2.8.12.2
How can I make catkin
use the new (/correct) version of CMake?