Feature Request: restrict UNITY_BUILD buckets to folders via new build mode
So UNITY_BUILDs currently come with the ODR issue which with the currently implemented cmake options can only be circumvented by manually creating buckets to prevent creating buckets with files that conflict each other. However, Visual Studio has an option which instructs the unity build to only unify files within the same folder.
This feature is very helpful when building source files which have header includes which must not be included by files outside of that folder. Especially when dealing with unscoped enums and definitions which can and will collide when not applying such a restriction.
So I think implementing this functionality as a new build mode can help further reducing ODR issues without having to flip the entire source code upside down.