Skip to content

Conversation

@tuliom
Copy link
Contributor

@tuliom tuliom commented Jun 9, 2025

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes #143246.

Suggested-by: Nikita Popov [email protected]

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes llvm#143246.

Suggested-by: Nikita Popov <[email protected]>
@llvmbot llvmbot added the mlir label Jun 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Jun 9, 2025

@llvm/pr-subscribers-mlir

Author: Tulio Magno Quites Machado Filho (tuliom)

Changes

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes #143246.

Suggested-by: Nikita Popov <[email protected]>


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 --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

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tuliom tuliom merged commit 5e0e6a0 into llvm:main Jun 10, 2025
9 checks passed
tomtor pushed a commit to tomtor/llvm-project that referenced this pull request Jun 14, 2025
…lvm#143435)

Replace LINK_LIBS with mlir_target_link_libraries.
Fixes llvm#143246.

Suggested-by: Nikita Popov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MLIR Regression: 54 tests started to fail recently

4 participants