Ubospica opened a new pull request, #124: URL: https://github.com/apache/tvm-ffi/pull/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. 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
