[Mlir-commits] [mlir] [MLIR][Python] Add LLVM include directories to mlir-py cmake (PR #181779)

Jakub Kuderski llvmlistbot at llvm.org
Tue Feb 17 06:52:13 PST 2026


================
@@ -8,6 +8,19 @@
 # nomenclature, adds libraries.
 ################################################################################
 
+# INTERFACE library that provides the include directories needed to compile
+# against MLIR CAPI headers. The CAPI headers (e.g., mlir/CAPI/Wrap.h)
+# transitively include LLVM headers (via mlir/Support/LLVM.h), so consumers
+# need the LLVM include paths even if they don't link against LLVMSupport.
+# Defined here (rather than in lib/CAPI/) so it is available to both in-tree
+# and external project builds that include this module.
+if(NOT TARGET MLIRCAPIHeaderDeps)
----------------
kuhar wrote:

Why do we need this outer `if` statement?

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


More information about the Mlir-commits mailing list