D107156 and D107320 are not sufficient when OpenMP is built as llvm runtime because dependencies only work within the same cmake instance.
We could limit the dependency to cases where libomptarget/plugins are really built. But compared to the whole llvm project, building openmp runtime is negligible and postponing the build of OpenMP runtime after the dependencies are ready seems reasonable.
The direct dependency introduced in D107156 and D107320 is necessary for the case where OpenMP is built as llvm project.
This patch supersedes / includes D107320.