[llvm-branch-commits] [mlir] release/20.x: [mlir][CMake] Fix dependency on MLIRTestDialect in Transforms tests (#125894) (PR #126211)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 7 01:47:16 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: None (llvmbot)

<details>
<summary>Changes</summary>

Backport ebd23f25c8936db3dd917567737a067d6878e2f4

Requested by: @<!-- -->DavidSpickett

---
Full diff: https://github.com/llvm/llvm-project/pull/126211.diff


1 Files Affected:

- (modified) mlir/test/lib/Transforms/CMakeLists.txt (+3-1) 


``````````diff
diff --git a/mlir/test/lib/Transforms/CMakeLists.txt b/mlir/test/lib/Transforms/CMakeLists.txt
index b91265d20fb4812..1b9b9bffa52792e 100644
--- a/mlir/test/lib/Transforms/CMakeLists.txt
+++ b/mlir/test/lib/Transforms/CMakeLists.txt
@@ -34,12 +34,14 @@ add_mlir_library(MLIRTestTransforms
 
   DEPENDS
   ${MLIRTestTransformsPDLDep}
+
+  LINK_LIBS PUBLIC
+  MLIRTestDialect
   )
 mlir_target_link_libraries(MLIRTestTransforms PUBLIC
   MLIRAnalysis
   MLIRFuncDialect
   MLIRInferIntRangeInterface
-  MLIRTestDialect
   MLIRTransforms
   )
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/126211


More information about the llvm-branch-commits mailing list