forked from OSchip/llvm-project
[mlir] Make translation libraries available through MLIRConfig.cmake
This commit is contained in:
parent
04a96aa3e4
commit
db52a49010
|
@ -14,6 +14,7 @@ export(TARGETS ${MLIR_EXPORTS} FILE ${mlir_cmake_builddir}/MLIRTargets.cmake)
|
|||
get_property(MLIR_ALL_LIBS GLOBAL PROPERTY MLIR_ALL_LIBS)
|
||||
get_property(MLIR_DIALECT_LIBS GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
||||
get_property(MLIR_CONVERSION_LIBS GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
||||
get_property(MLIR_TRANSLATION_LIBS GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
|
||||
|
||||
# Generate MlirConfig.cmake for the build tree.
|
||||
set(MLIR_CONFIG_CMAKE_DIR "${mlir_cmake_builddir}")
|
||||
|
|
|
@ -17,6 +17,7 @@ set(MLIR_MAIN_SRC_DIR "@MLIR_MAIN_SRC_DIR@")
|
|||
set_property(GLOBAL PROPERTY MLIR_ALL_LIBS "@MLIR_ALL_LIBS@")
|
||||
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_TRANSLATION_LIBS "@MLIR_TRANSLATION_LIBS@")
|
||||
|
||||
# Provide all our library targets to users.
|
||||
include("@MLIR_CONFIG_EXPORTS_FILE@")
|
||||
|
|
Loading…
Reference in New Issue