[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.
This commit is contained in:
Boyana Norris 2025-08-14 10:24:44 -07:00 committed by GitHub
parent a8f1f1b41f
commit ada191136b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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