diff options
author | Jack Wolfard <jack@rivosinc.com> | 2023-07-15 02:44:42 -0700 |
---|---|---|
committer | Stella Laurenzo <stellaraccident@gmail.com> | 2023-07-18 11:05:39 -0700 |
commit | 9494bd84df3c5b496fc087285af9ff40d7859b6a (patch) | |
tree | 3762cf78307d1073a4099f15ffa12e422b6500a4 /mlir/cmake | |
parent | 347f45ed2b6d951a19fdef99c468f4f8f7f0b979 (diff) | |
download | llvm-9494bd84df3c5b496fc087285af9ff40d7859b6a.zip llvm-9494bd84df3c5b496fc087285af9ff40d7859b6a.tar.gz llvm-9494bd84df3c5b496fc087285af9ff40d7859b6a.tar.bz2 |
[mlir][python] Add install target for MLIR Python sources.
Differential Revision: https://reviews.llvm.org/D155362
Diffstat (limited to 'mlir/cmake')
-rw-r--r-- | mlir/cmake/modules/AddMLIRPython.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mlir/cmake/modules/AddMLIRPython.cmake b/mlir/cmake/modules/AddMLIRPython.cmake index 382f7c0..5349bb8 100644 --- a/mlir/cmake/modules/AddMLIRPython.cmake +++ b/mlir/cmake/modules/AddMLIRPython.cmake @@ -174,12 +174,13 @@ function(_mlir_python_install_sources name source_root_dir destination) install( FILES "${source_root_dir}/${source_relative_path}" DESTINATION "${destination}/${dest_relative_dir}" - COMPONENT "${name}" + COMPONENT mlir-python-sources ) endforeach() - get_target_export_arg(${name} MLIR export_to_mlirtargets UMBRELLA mlir-libraries) + get_target_export_arg(${name} MLIR export_to_mlirtargets + UMBRELLA mlir-python-sources) install(TARGETS ${name} - COMPONENT ${name} + COMPONENT mlir-python-sources ${export_to_mlirtargets} ) endfunction() |