【conan error】 Detected a mismatch for the compiler version between your conan profile

Detected a mismatch for the compiler version between your conan profile
settings and CMake:

Compiler version specified in your conan profile: 7

Compiler version detected in CMake: 6.2

 

这是一个很棒的error机制,能够让你免受版本变更导致的编译器版本不一致带来的影响

 

解决方案,去Conan目录中修改你profile中定义的编译器版本,让cmake和conan保持一致

vim ~/.conan/profiles/xxxx

修改其中的 compiler.version配置,如上例所示,应改成compiler.version=6

上一篇:juc之synchronized


下一篇:[ERROR] Can‘t find messagefile ‘/monitor/mysql/share/mysql/errmsg.sys‘