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
Bug - MSBuild helper should not force compiler flags such as /o
#3548
Comments
Help me understand the issue. Who is setting the
What is the validation you see the build helper could perform? |
The problem in our environment was that a Visual Studio |
No problem. You think we could introduce some check? |
Not unless you get another report of it. I guess that last question is, why is Conan even injecting |
This just came up again. I spoke with @memsharded . I just setup our biggest project and the Based on the comment, it looks like maybe the defaults were borrowed from Cmake. If only the RuntimeLibrary needs to be injected, then I think that's all we should inject. |
This is a bit tricky, the Where do the
I am missing something? |
Indeed, the build helpers are adjusting With that said, maybe there is some reason this must be done, which I am not aware of. |
About Thanks |
Ok, now I understand why it was done this way. In that case, I think this is pretty simple to resolve. It looks like Conan derived the idea of setting First, CMake generates Second, there's a big difference between the optimization level and the MSVC runtime, which are both injected together by the MSBuild helper. When running Conan on a recipe that uses the Visual Studio compiler, the setting of I hope this provides some helpful perspective and insight. please let me know if you'd like to discuss further. |
Ok, I think it makes sense to remove them, and leave the project defined ones. |
Changing title to reflect current intention. |
/o
.
/o
. /o
It seems that the
.props
file used to inject a few things implicitly into the build sometimes results in conflicts as seen here:This can happen in very common circumstances, including any projects that have "Runtime checks" enabled, which I believe is the default for DLL projects.
Eventually, would be good to validate whatever flags are being injected.
The text was updated successfully, but these errors were encountered: