@@ -622,27 +622,27 @@ endfunction(add_mlir_aggregate)
622
622
function (add_mlir_library_install name )
623
623
get_target_property (_install_with_toolchain ${name} MLIR_INSTALL_WITH_TOOLCHAIN )
624
624
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR _install_with_toolchain )
625
- get_target_export_arg (${name} MLIR export_to_mlirtargets UMBRELLA mlir-libraries )
626
- install (TARGETS ${name}
627
- COMPONENT ${name}
628
- ${export_to_mlirtargets}
629
- LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
630
- ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
631
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR} "
632
- # Note that CMake will create a directory like:
633
- # objects-${CMAKE_BUILD_TYPE}/obj.LibName
634
- # and put object files there.
635
- OBJECTS DESTINATION lib${LLVM_LIBDIR_SUFFIX}
636
- )
625
+ get_target_export_arg (${name} MLIR export_to_mlirtargets UMBRELLA mlir-libraries )
626
+ install (TARGETS ${name}
627
+ COMPONENT ${name}
628
+ ${export_to_mlirtargets}
629
+ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
630
+ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
631
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR} "
632
+ # Note that CMake will create a directory like:
633
+ # objects-${CMAKE_BUILD_TYPE}/obj.LibName
634
+ # and put object files there.
635
+ OBJECTS DESTINATION lib${LLVM_LIBDIR_SUFFIX}
636
+ )
637
637
638
- if (NOT LLVM_ENABLE_IDE )
639
- add_llvm_install_targets (install -${name}
640
- DEPENDS ${name}
641
- COMPONENT ${name} )
642
- endif ()
643
- set_property (GLOBAL APPEND PROPERTY MLIR_ALL_LIBS ${name} )
638
+ if (NOT LLVM_ENABLE_IDE )
639
+ add_llvm_install_targets (install -${name}
640
+ DEPENDS ${name}
641
+ COMPONENT ${name} )
642
+ endif ()
643
+ set_property (GLOBAL APPEND PROPERTY MLIR_ALL_LIBS ${name} )
644
+ set_property (GLOBAL APPEND PROPERTY MLIR_EXPORTS ${name} )
644
645
endif ()
645
- set_property (GLOBAL APPEND PROPERTY MLIR_EXPORTS ${name} )
646
646
endfunction ()
647
647
648
648
# Declare an mlir library which is part of the public C-API.
0 commit comments