diff --git a/configure b/configure index 3a785ce946..ce9fba177d 100755 --- a/configure +++ b/configure @@ -472,7 +472,7 @@ BUILD_CMD+=(-I/usr/local/include -L/usr/local/lib) if [[ "${CONFIG[VFIO_USER]}" = "y" ]]; then - if ! hash cmake; then + if ! bash -c "command -v cmake3 cmake" > /dev/null; then echo "ERROR: --with-vfio-user requires cmake" echo "Please install then re-run this script" exit 1