cmake does not truly support dependencies on automatically generated files
which are not in the same directory as the targets which depend on them.
It works with ninja, but doesn't work with make
This patch adds an explicit dependence so that all dialects are built
before the analysis libraries.
Differential Revision: https://reviews.llvm.org/D79805
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
+ DEPENDS
+ mlir-headers
+
LINK_LIBS PUBLIC
MLIRAffineOps
MLIRCallInterfaces
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
+ DEPENDS
+ mlir-headers
+
LINK_LIBS PUBLIC
MLIRAffineOps
MLIRCallInterfaces