【问题标题】:Detected a mismatch for the compiler version between your conan profile settings and CMake检测到您的柯南配置文件设置和 CMake 之间的编译器版本不匹配
【发布时间】:2019-11-26 15:05:14
【问题描述】:

我遇到了一个 CMake 问题,我没有检测到正确版本的 CMake 编译器。

我的 CMake 使用的是命令行,但不是在 CLion 中。

这里是 CLion 中 CMake 工具的输出日志:

CMake Error at build/conanbuildinfo.cmake:1344 (message): Detected a mismatch for the compiler version between your conan profile settings and CMake: Compiler version specified in your conan profile: 9 Compiler version detected in CMake: 8.3 Please check your conan profile settings (conan profile show [default|your_profile_name])

【问题讨论】:

  • 请提供有关问题的更多详细信息,包括具体错误日志、重现问题的实际命令或构建步骤以及相关环境详细信息。
  • 您可以在此处阅读有关 CLion 集成的信息:docs.conan.io/en/latest/integrations/ide/clion.html

标签: c++ cmake compiler-errors conan


【解决方案1】:

这个问题的解决方法是改变两条路径进行编译:

CTRL + ALT + S打开参数

转到Build, Execution, Deployment > Toolchain

C Compiler 切换到/usr/bin/gccC++ Compiler/usr/bin/g++

【讨论】:

    猜你喜欢
    • 2021-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-01
    • 2021-11-14
    • 1970-01-01
    • 2011-01-27
    相关资源
    最近更新 更多