在编译最新版的OBS时提示我cmake版本太老了:
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.22 or higher is required. You are running version 3.20.2
先看下没升级前的版本: 升级一下cmake
例如我下载的是3.29当前最新的版本 cmake-3.29.0.tar.gz
tar -zxvf cmake-3.29.0.tar.gz
cd cmake-3.29.0/
./bootstrap
make -j20
make install
zhenghui@zh-pc:桌面$ cmake --version
cmake version 3.29.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
zhenghui@zh-pc:桌面$