-
Notifications
You must be signed in to change notification settings - Fork 265
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: Add support for UNITY_BUILD #2839
Conversation
Can you explain what this option is doing, and/or what the errors being encountered & fixed by this are? |
yes, this option allows to merge several source files into a single compilation unit to speed up builds |
Thanks for providing the inference, I was unfamiliar with Am I misreading this? Looking at the warning, it says that developers should not, but as well all know, that doesn't mean developers aren't XD. But unless that's what's happening, I wonder if these changes would make more sense wherever the A fix might be to modify our project to use Footnotes |
it can be enabled at configure time with cmake -DCMAKE_UNITY_BUILD=ON which enables UNITY_BUILD for all targets (thats why it was enabled in vtk), I dont advise to enable it by default because it can be slower for incremental build needed when developing, |
Ah, I see, the I'll take a closer look at this on Monday, we should be able to get it in but I'll want to provide some comments or accompanying information so that these changes don't exist in a contextless vacuum. There's very little chance I'll remember any of these 18 months from now XD. |
I added comments to future-proof against my own future confusion, and updated the release notes. Once the tests pass, I'll get this merged in. Thanks @jschueller! |
Allows to speed-up compilation, or at least avoid erros in vtk where netcdf is used as a third-party