From ada191136b17daac3d53e7919eaa9a570de06798 Mon Sep 17 00:00:00 2001 From: Boyana Norris Date: Thu, 14 Aug 2025 10:24:44 -0700 Subject: [PATCH] [mlir][cmake] Fix mlir target export (#153341) In https://github.com/llvm/llvm-project/pull/152195, target export was accidentally moved inside a conditional, but it should have been left outside. This patch undoes that change. --- mlir/cmake/modules/AddMLIR.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/cmake/modules/AddMLIR.cmake b/mlir/cmake/modules/AddMLIR.cmake index 14eefb50ca71..38839679ef8b 100644 --- a/mlir/cmake/modules/AddMLIR.cmake +++ b/mlir/cmake/modules/AddMLIR.cmake @@ -641,8 +641,8 @@ function(add_mlir_library_install name) COMPONENT ${name}) endif() set_property(GLOBAL APPEND PROPERTY MLIR_ALL_LIBS ${name}) - set_property(GLOBAL APPEND PROPERTY MLIR_EXPORTS ${name}) endif() + set_property(GLOBAL APPEND PROPERTY MLIR_EXPORTS ${name}) endfunction() # Declare an mlir library which is part of the public C-API.