[Mlir-commits] [mlir] [MLIR] Use mlir_target_link_libraries with MLIRTestIRDLToCppDialect (PR #143435)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jun 9 13:20:55 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Tulio Magno Quites Machado Filho (tuliom)

<details>
<summary>Changes</summary>

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes #<!-- -->143246.

Suggested-by: Nikita Popov <npopov@<!-- -->redhat.com>

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


1 Files Affected:

- (modified) mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt (+2-1) 


``````````diff
diff --git a/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt b/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt
index 98a4bd3058a2a..103bc94d86920 100644
--- a/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt
+++ b/mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt
@@ -7,8 +7,9 @@ add_mlir_library(MLIRTestIRDLToCppDialect
 
   DEPENDS
   TestIRDLToCppGen
+)
 
-  LINK_LIBS PUBLIC
+mlir_target_link_libraries(MLIRTestIRDLToCppDialect PUBLIC
   MLIRIR
   MLIRPass
   MLIRTransforms

``````````

</details>


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


More information about the Mlir-commits mailing list