diff --git a/mlir/test/lib/IR/CMakeLists.txt b/mlir/test/lib/IR/CMakeLists.txt index eeb9cf1e34fc8..1abcfc77d2d9b 100644 --- a/mlir/test/lib/IR/CMakeLists.txt +++ b/mlir/test/lib/IR/CMakeLists.txt @@ -28,7 +28,7 @@ add_mlir_library(MLIRTestIR EXCLUDE_FROM_LIBMLIR - DEPENDS + LINK_LIBS PUBLIC MLIRTestDialect ) @@ -37,7 +37,6 @@ mlir_target_link_libraries(MLIRTestIR PUBLIC MLIRBytecodeReader MLIRBytecodeWriter MLIRFunctionInterfaces - MLIRTestDialect ) target_include_directories(MLIRTestIR