【问题标题】:Why the make command complain about the cmake version while I have already updated cmake version?为什么在我已经更新 cmake 版本时 make 命令抱怨 cmake 版本?
【发布时间】:2020-04-05 12:58:40
【问题描述】:

我正在使用至少需要 cmake 3.12 的存储库。我有 cmake 3.10.2,所以我将其更新为 cmake 3.17.0。现在当我运行cmake --version 时,我得到cmake version 3.17.0 跟随How to reinstall the latest cmake version? 。但是,当我使用 repo 时,我仍然收到以下错误

 CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
   CMake 3.12 or higher is required.  You are running version 3.10.2

有人知道吗?

【问题讨论】:

  • 您是否删除了您的 CMake 缓存,并在存储库中从头开始重新运行 CMake?

标签: cmake


【解决方案1】:

考虑您正在构建或源代码,删除所有内容,然后再次运行 cmake(配置步骤)。如果您在环境中正确设置了 PATH,那么您的问题应该会得到解决。

【讨论】:

    【解决方案2】:

    我不知道是什么问题!但是,我在安装cmake-3.17.0之前删除了cmake并使用了https://apt.kitware.com/,问题就解决了!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-10-25
      • 2015-11-27
      • 2016-02-16
      • 1970-01-01
      • 1970-01-01
      • 2020-12-29
      • 2015-03-16
      相关资源
      最近更新 更多