Skip to content

Commit ad152f4

Browse files
authored
[mlir] Fix MLIRTestDialect dependency in MLIRTestIR (#125705)
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.
1 parent 8bba8a5 commit ad152f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/test/lib/IR/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ add_mlir_library(MLIRTestIR
2828

2929
EXCLUDE_FROM_LIBMLIR
3030

31-
DEPENDS
31+
LINK_LIBS PUBLIC
3232
MLIRTestDialect
3333
)
3434

@@ -37,7 +37,6 @@ mlir_target_link_libraries(MLIRTestIR PUBLIC
3737
MLIRBytecodeReader
3838
MLIRBytecodeWriter
3939
MLIRFunctionInterfaces
40-
MLIRTestDialect
4140
)
4241

4342
target_include_directories(MLIRTestIR

0 commit comments

Comments
 (0)