-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 subproject with MSVC generate many warnings D9025 #6021
Comments
I think this is part of a bigger issue: We should pass to cmake all external args (e.g. cflags), especially when cross compiling, because cmake could need them to run its checks, etc. But then all those flags will end into the generated I think the solution is to add a new feature to Meson, |
Adding flags for people to workaround issues is not scalable. Making it work automatically is. |
@jpakkane doesn't have to be part of meson's public API, could be an internal feature just for the cmake module. When I said |
I don't think we need a specific feature for this. I would rather continue with the current argument blacklist approach and let meson handle those flags. Especially in this case where debug information is controlled. This is also how normal subprojects usually function unless the cargs are manually overwritten. |
@SkyMaverick Could you please upload (Pastebin, etc.) |
@mensinda Done. |
Should be fixed with #6025. |
I use the CMake subproject in a project with cl-compiler and the ninja build system. The meson automatically puts the /ZI argument, but when parsing a subproject, it puts the /Zi argument. This causes many warnings D9025.
The text was updated successfully, but these errors were encountered: