1. CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
    2. CMake 3.6.0 or higher is required. You are running version 3.5.1
    3. -- Configuring incomplete, errors occurred!
    1. 检查您当前的版本:cmake --version
    2. 卸载它:sudo apt remove cmake -y
    3. 访问https://cmake.org/download/下载最新的 bash 脚本
      • 在我的情况下cmake-3.6.2-Linux-x86_64.sh就足够了。
    4. 将脚本复制到 /opt/.
    5. 使脚本可执行:

      chmod +x /opt/cmake-3.*your_version*.sh
      
    6. 更改为所需的安装目录(/opt/例如)

      • 从 cmake 3.10.2 开始,安装程序似乎不再/opt默认安装
    7. 跑: ```java sudo bash /opt/cmake-3.your_version.sh
    您需要按y两次。
    
    8. 该脚本安装二进制文件,/opt/cmake-3.*your_version*以便获取cmake命令,创建一个符号链接:
    ```java
    sudo ln -s /opt/cmake-3.*your_version*/bin/* /usr/local/bin
    
    1. 使用以下方法测试您的结果:cmake --version