Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] Ensure that LINK_LIBS are dependencies for object library tar…
…gets In MLIR, it is common for automatically generated headers to be included in many places. To avoid tracking these dependencies explicitly in cmake, they are treated as part of a library which 'owns' the generated header. Users of the generated header link against the owning library. However, object libraries don't actually 'link', so this dependence gets lost. This patch adds an explicit dependence for these generated headers when creating object library targets to ensure that generated headers are appropriately generated Differential Revision: https://reviews.llvm.org/D79241
- Loading branch information