mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 03:56:41 +00:00
[mlir] Fix MLIRTestDialect dependency in MLIRTestIR
This is a test library which is not part of libMLIR, so it should use normal LINK_LIBS instead of mlir_target_link_libraries. This fixes an issue introduced in #123910 and follows up on the fix in #125004, which added the library to DEPENDS, which is not sufficient.
This commit is contained in:
parent
984a779b81
commit
88f8956711
@ -27,13 +27,15 @@ add_mlir_library(MLIRTestIR
|
|||||||
TestVisitorsGeneric.cpp
|
TestVisitorsGeneric.cpp
|
||||||
|
|
||||||
EXCLUDE_FROM_LIBMLIR
|
EXCLUDE_FROM_LIBMLIR
|
||||||
|
|
||||||
|
LINK_LIBS PUBLIC
|
||||||
|
MLIRTestDialect
|
||||||
)
|
)
|
||||||
mlir_target_link_libraries(MLIRTestIR PUBLIC
|
mlir_target_link_libraries(MLIRTestIR PUBLIC
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRBytecodeReader
|
MLIRBytecodeReader
|
||||||
MLIRBytecodeWriter
|
MLIRBytecodeWriter
|
||||||
MLIRFunctionInterfaces
|
MLIRFunctionInterfaces
|
||||||
MLIRTestDialect
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(MLIRTestIR
|
target_include_directories(MLIRTestIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user