Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depend on cmake only if there is no system package
Rather than requiring using `cmake` from PyPI unconditionally, check if `cmake` is available on the system, and add the dependency only if it is not. This is the same approach as used e.g. by `scikit-build-core` build system. Besides avoiding unnecessarily installing (or building) a second copy of CMake, it improves portability, as system CMake is often patched downstream whereas the CMake version found on PyPI is not.
- Loading branch information