File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,9 @@ function(add_mlir_library name)
388
388
389
389
if (TARGET ${name} )
390
390
target_link_libraries (${name} INTERFACE ${LLVM_COMMON_LIBS} )
391
+ if (ARG_INSTALL_WITH_TOOLCHAIN )
392
+ set_target_properties (${name} PROPERTIES MLIR_INSTALL_WITH_TOOLCHAIN TRUE )
393
+ endif ()
391
394
if (NOT ARG_DISABLE_INSTALL )
392
395
add_mlir_library_install (${name} )
393
396
endif ()
@@ -617,7 +620,8 @@ endfunction(add_mlir_aggregate)
617
620
# This is usually done as part of add_mlir_library but is broken out for cases
618
621
# where non-standard library builds can be installed.
619
622
function (add_mlir_library_install name )
620
- if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY )
623
+ get_target_property (_install_with_toolchain ${name} MLIR_INSTALL_WITH_TOOLCHAIN )
624
+ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR _install_with_toolchain )
621
625
get_target_export_arg (${name} MLIR export_to_mlirtargets UMBRELLA mlir-libraries )
622
626
install (TARGETS ${name}
623
627
COMPONENT ${name}
You can’t perform that action at this time.
0 commit comments