Skip to content

Commit 88f8956

Browse files
committed
[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 llvm#123910 and follows up on the fix in llvm#125004, which added the library to DEPENDS, which is not sufficient.
1 parent 984a779 commit 88f8956

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/test/lib/IR/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ add_mlir_library(MLIRTestIR
2727
TestVisitorsGeneric.cpp
2828

2929
EXCLUDE_FROM_LIBMLIR
30+
31+
LINK_LIBS PUBLIC
32+
MLIRTestDialect
3033
)
3134
mlir_target_link_libraries(MLIRTestIR PUBLIC
3235
MLIRPass
3336
MLIRBytecodeReader
3437
MLIRBytecodeWriter
3538
MLIRFunctionInterfaces
36-
MLIRTestDialect
3739
)
3840

3941
target_include_directories(MLIRTestIR

0 commit comments

Comments
 (0)