我遇到了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++