It is better to not specified the gcc/g++ version otherwise cmake can have some difficulties to find g++