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

Head commit for run:
df04392b44a90f6641a7afb51638b324c8fb67ec / Yixin Dong <[email protected]>
[CMake] Enable automatic cmake config discovery (#124)

Relocate CMake config files from `cmake/` to `share/cmake/tvm_ffi/` to
match
CMake's standard search pattern `<prefix>/<name>*/share/cmake/<name>*/`.

This enables `find_package(tvm_ffi CONFIG REQUIRED)` to work
automatically
without manually setting `tvm_ffi_ROOT`.

When `find_package(Python)` is called, CMake adds `sys.prefix` to search
paths,
allowing it to discover tvm-ffi's config files in the standard location.

This also aligns with pybind's behavior. See also
https://github.com/pybind/pybind11/blob/a2c59711b20707d64b7ad61d488e002611369780/.github/CONTRIBUTING.md#L325
and
https://github.com/pybind/pybind11/blob/a2c59711b20707d64b7ad61d488e002611369780/pybind11/commands.py#L22.

Changes:
- CMakeLists.txt: Install config to `share/cmake/tvm_ffi/`
- libinfo.py: Update `find_cmake_path()` to check standard path first
- examples: Simplify CMakeLists.txt to use direct `find_package()`

This PR also avoids rebuilding in editable installation mode, and adds a
cd command in the readme of examples to ensure user is in the correct
directory.

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

With regards,
GitHub Actions via GitBox


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

Reply via email to