其他分享
首页 > 其他分享> > 【conan error】 Detected a mismatch for the compiler version between your conan profile

【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

标签:profile,编译器,version,conan,between,your,compiler
来源: https://www.cnblogs.com/shadowlly/p/15425827.html