检测到 Conan 配置文件设置与 CMake 之间的编译器版本不匹配
Detected a mismatch for the compiler version between your conan profile settings and CMake
我遇到了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])
此问题的解决方案是更改编译的两条路径:
按CTRL + ALT + S
打开参数
转到Build, Execution, Deployment
>Toolchain
将C Compiler
切换到/usr/bin/gcc
,将C++ Compiler
切换到/usr/bin/g++
相关文章:
- 编译器如何在使用SFINAE的函数和标准函数之间确定两者是否可行
- 编译器如何在前缀和 postix 运算符之间进行区分?
- 填充上编译器生成的复制构造函数之间的不一致
- 为什么库API+编译器ABI足以确保具有不同版本gcc的对象之间的兼容性
- 检测到 Conan 配置文件设置与 CMake 之间的编译器版本不匹配
- 不同c++编译器之间的自动类型推导不匹配
- 如何让CMake在多个编译器之间进行选择?
- 如果检查和内联条件之间是否存在编译器差异
- 这些编译器之间是否有任何区别
- Android NDK 中的预构建工具链和自定义工具链编译器之间的差异
- 编译器如何在向量vs Initializer_list之间做出决定
- C - 编译器如何以参数为参数的过载函数在超载函数之间决定
- 具有C 接口的C 动态库如何在不同的编译器版本之间不会破坏ABI
- 名称名称空间和类模板之间的冲突:不同的编译器行为
- CL和G 编译器之间的差异
- 当编译器看到 std::vector<Typo> 和 std::vector<struct 拼写错误时发出的诊断之间的差异背后的理由是什么>
- 编译器之间在丢弃的 if constexpr(false) 语句中实例化模板的行为不一致
- C 编译器如何在延期和异步执行std :: async之间进行选择
- 可能的编译器错误:在两台机器之间使用英特尔编译器的boost bessel函数会产生奇怪的结果
- C 编译器可以在用户定义和编译器生成的复制构建器之间进行自由选择