Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] CONAN_DISABLE_CHECK_COMPILER can be set via env var? #16153

Open
1 task done
MTomBosch opened this issue Apr 26, 2024 · 1 comment
Open
1 task done

[question] CONAN_DISABLE_CHECK_COMPILER can be set via env var? #16153

MTomBosch opened this issue Apr 26, 2024 · 1 comment
Assignees

Comments

@MTomBosch
Copy link

What is your question?

We are using Conan 1.63.

We are getting an error "Detected a mismatch for the compiler version between your conan profile
settings and CMake" and one fix (until we move to Conan 2) seems to be to enable the cmake flag: CONAN_DISABLE_CHECK_COMPILER.

Can this check also be disabled via some environment variable or it needs to be done via CMake variable definition?

PS. We can fix this problem also by correcting the used build profile but I am curious if we can resolve this error also via the mentioned variable.

Thank you

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this Apr 26, 2024
@memsharded
Copy link
Member

Hi @MTomBosch

The CONAN_DISABLE_CHECK_COMPILER is a standard CMake variable, it won't listen to it from the environment, it would be necessary to define it just before the include(.../conanbuildinfo.cmake).

In any case, this functionality has been removed from the new integrations CMakeToolchain, as it is toolchain-based, it is not possible to do compiler checks in it. So probably the way moving forward is making sure that the Conan profile is aligned with the configuration before using it, as Conan will trust it as CMake cannot validate it anymore via toolchains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants