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

created at 10-19-2021 views: 2

error

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

This is a great error mechanism that can protect you from the inconsistency of the compiler version caused by version changes.

solution

Go to the Conan directory and modify the compiler version defined in your profile to make cmake and conan consistent

vim ~/.conan/profiles/xxxx

Modify the compiler.version configuration, as shown in the above example, it should be changed to compiler.version=6

created at:10-19-2021
edited at: 10-19-2021: