-
Notifications
You must be signed in to change notification settings - Fork 60
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
Support building with Ninja using MSVC #614
Comments
Thanks for posting this @Destranix. We typically use the A specific example/reproducer would help us better understand the problem. The following links might be helpful:
|
"Are these providing the wrong flags somewhere?" Yes. Compiling e.g. SAMRAI I got a "/Wextra"-Flag and others. "A specific example/reproducer would help us better understand the problem."
"Can you please provide more information about the errors that you're seeing and/or the desired behavior?" I worked around the Issue by checking for compiler ID "MSVC" and setting the "COMPILER_FAMILY_IS_MSVC" flag accordingly. |
When compiling using MSVC and Ninja the compiler flags are not correctly set cause the tool fails to identify the compiler.
This can be avoided by extending the identification mechanism for compiler in SetCompilerOptions.cmake, e.g. also checking for MSVC compiler ID.
The text was updated successfully, but these errors were encountered: