File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,13 @@ function(_mlir_python_install_sources name source_root_dir destination)
174
174
install (
175
175
FILES "${source_root_dir} /${source_relative_path} "
176
176
DESTINATION "${destination} /${dest_relative_dir} "
177
- COMPONENT " ${name} "
177
+ COMPONENT mlir-python-sources
178
178
)
179
179
endforeach ()
180
- get_target_export_arg (${name} MLIR export_to_mlirtargets UMBRELLA mlir-libraries )
180
+ get_target_export_arg (${name} MLIR export_to_mlirtargets
181
+ UMBRELLA mlir-python-sources )
181
182
install (TARGETS ${name}
182
- COMPONENT ${name}
183
+ COMPONENT mlir-python-sources
183
184
${export_to_mlirtargets}
184
185
)
185
186
endfunction ()
Original file line number Diff line number Diff line change @@ -517,6 +517,19 @@ add_mlir_python_common_capi_library(MLIRPythonCAPI
517
517
${_ADDL_TEST_SOURCES}
518
518
)
519
519
520
+ ################################################################################
521
+ # Custom targets.
522
+ ################################################################################
523
+
524
+ _flatten_mlir_python_targets (mlir_python_sources_deps MLIRPythonSources )
525
+ add_custom_target ("mlir-python-sources" DEPENDS ${mlir_python_sources_deps} )
526
+ if (NOT LLVM_ENABLE_IDE )
527
+ add_llvm_install_targets (install -mlir-python-sources
528
+ DEPENDS mlir-python-sources
529
+ COMPONENT mlir-python-sources
530
+ )
531
+ endif ()
532
+
520
533
################################################################################
521
534
# The fully assembled package of modules.
522
535
# This must come last.
You can’t perform that action at this time.
0 commit comments