forked from OSchip/llvm-project
[MLIR] Fix dependencies for Analysis libraries
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
This commit is contained in:
parent
11c8c2a551
commit
7a17f3ccd1
|
@ -17,6 +17,9 @@ add_mlir_library(MLIRAnalysis
|
|||
ADDITIONAL_HEADER_DIRS
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
||||
|
||||
DEPENDS
|
||||
mlir-headers
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
MLIRAffineOps
|
||||
MLIRCallInterfaces
|
||||
|
@ -35,6 +38,9 @@ add_mlir_library(MLIRLoopAnalysis
|
|||
ADDITIONAL_HEADER_DIRS
|
||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
||||
|
||||
DEPENDS
|
||||
mlir-headers
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
MLIRAffineOps
|
||||
MLIRCallInterfaces
|
||||
|
|
Loading…
Reference in New Issue