The GitHub Actions job "mainline-only" on tvm-ffi.git/main has succeeded.
Run started by GitHub user junrushao (triggered by junrushao).

Head commit for run:
ac80ea39735f0284451141837de23dff99b95129 / ctuu <[email protected]>
[FEAT] Add CMake namespace aliases for source dependency builds (#479)

## Summary
Add namespace-qualified ALIAS targets (tvm_ffi::header, tvm_ffi::shared,
tvm_ffi::static) that point to the in-tree build targets
(tvm_ffi_header, tvm_ffi_shared, tvm_ffi_static).

## Problem
When tvm-ffi is used as a source dependency, `tvm_ffi_configure_target`
expects `tvm_ffi::header` / `tvm_ffi::shared` targets to exist. However,
these are only created by the package config file
(`cmake/tvm_ffi-config.cmake`), which is not included during source
builds. Downstream projects using source dependencies cannot use these
targets.

## Solution
Create ALIAS targets in both:
- Top-level `CMakeLists.txt` for `tvm_ffi::header`
- `cmake/Utils/Library.cmake` for `tvm_ffi::static` and
`tvm_ffi::shared` (created by `tvm_ffi_add_target_from_obj`)

This ensures the namespace-qualified names are available in both source
and package builds.

Report URL: https://github.com/apache/tvm-ffi/actions/runs/22511289438

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to