The fix for the issue in T18882 created a new issue. Adding a depencency from doc to BlueBerryDoc causes BlueBerryDoc to be build on all build and as a custom target it is assumed to be out of date always.
A quick fix for this is to only add the dependency for nightly dart clients. To fix this for good I will contact the cmake mailing list.