[Mlir-commits] [mlir] [mlir][cmake] export list of CAPI libs (PR #71722)

Maksim Levental llvmlistbot at llvm.org
Wed Nov 8 10:45:43 PST 2023


https://github.com/makslevental updated https://github.com/llvm/llvm-project/pull/71722

>From e8f0247f293bd4f4f53d3b9b972fdccad9185cfd Mon Sep 17 00:00:00 2001
From: max <maksim.levental at gmail.com>
Date: Wed, 8 Nov 2023 12:40:06 -0600
Subject: [PATCH] [mlir][cmake] export list of CAPI libs

---
 mlir/cmake/modules/CMakeLists.txt      | 1 +
 mlir/cmake/modules/MLIRConfig.cmake.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/mlir/cmake/modules/CMakeLists.txt b/mlir/cmake/modules/CMakeLists.txt
index 017370bf01f9dda..b7c5b960ef5a18e 100644
--- a/mlir/cmake/modules/CMakeLists.txt
+++ b/mlir/cmake/modules/CMakeLists.txt
@@ -26,6 +26,7 @@ get_property(MLIR_DIALECT_LIBS GLOBAL PROPERTY MLIR_DIALECT_LIBS)
 get_property(MLIR_CONVERSION_LIBS GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
 get_property(MLIR_EXTENSION_LIBS GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
 get_property(MLIR_TRANSLATION_LIBS GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
+get_property(MLIR_CAPI_LIBRARIES GLOBAL PROPERTY MLIR_CAPI_LIBRARIES)
 
 # Generate MlirConfig.cmake for the build tree.
 set(MLIR_CONFIG_CMAKE_DIR "${mlir_cmake_builddir}")
diff --git a/mlir/cmake/modules/MLIRConfig.cmake.in b/mlir/cmake/modules/MLIRConfig.cmake.in
index d3324d55c848e05..ec615ccfb0a12e4 100644
--- a/mlir/cmake/modules/MLIRConfig.cmake.in
+++ b/mlir/cmake/modules/MLIRConfig.cmake.in
@@ -23,6 +23,7 @@ set_property(GLOBAL PROPERTY MLIR_DIALECT_LIBS "@MLIR_DIALECT_LIBS@")
 set_property(GLOBAL PROPERTY MLIR_CONVERSION_LIBS "@MLIR_CONVERSION_LIBS@")
 set_property(GLOBAL PROPERTY MLIR_EXTENSION_LIBS "@MLIR_EXTENSION_LIBS@")
 set_property(GLOBAL PROPERTY MLIR_TRANSLATION_LIBS "@MLIR_TRANSLATION_LIBS@")
+set_property(GLOBAL PROPERTY MLIR_UPSTREAM_CAPI_LIBS "@MLIR_CAPI_LIBRARIES@")
 
 # Provide all our library targets to users.
 # More specifically, configure MLIR so that it can be directly included in a top



More information about the Mlir-commits mailing list