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

Cmake doesn't detect llvm compiler on windows #354

Open
mrdimidium opened this issue Mar 2, 2025 · 1 comment
Open

Cmake doesn't detect llvm compiler on windows #354

mrdimidium opened this issue Mar 2, 2025 · 1 comment
Labels
question Further information is requested

Comments

@mrdimidium
Copy link

mrdimidium commented Mar 2, 2025

Hi. Thanks for your project, it's incredibly helpful.

I noticed that on Windows when specifying llvm compiler cmake still always chooses mvsc despite correctly specified environment variables.

I'm currently doing a separate step just for windows with llvm, but it seems like hackwork.

Can your wonderful project affect cmake from the outside, or is this a limitation of cmake and a hack is inevitable?

Image

@aminya
Copy link
Owner

aminya commented Mar 2, 2025

Thank you. Glad that you've found it useful

What generator are you using with cmake? Can you share the reproduction?

I believe CMake by default doesn't use Clang unless you specify Ninja as the generator

-DCCMAKE_GENERATOR='Ninja MultiConfog'

@aminya aminya added the question Further information is requested label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants