macOS Big Sur and build from git source

I have upgraded to macOS Big Sur, and build from git source has failed.

git clone https://github.com/SWI-Prolog/swipl-devel.git
cd swipl-devel
mkdir build
cd build
git -C .. submodule update --init
cmake -DCMAKE_INSTALL_PREFIX=$HOME -G Ninja .. && ninja && ninja install
FAILED: CMakeFiles/install.util 
cd /Users/Shared/src/swipl-devel/build && /usr/local/Cellar/cmake/3.18.4/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.

EDIT

Additional information:

% The following threads wouldn't die: []

[2409/2409] Generating home/doc/manindex.db

[13/14] Install the project...

-- Install configuration: "RelWithDebInfo"

CMake Error at cmake_install.cmake:56 (file):

file INSTALL cannot find

"/Users/cantor/src/swipl-devel/build/home/doc/manindex.db": No such file or

directory.

In fact, only packages directory is under the build/home/doc.

EDIT.

Around the line 56 of CMake Error at cmake_install.cmake:56 (file):

if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xDocumentationx" OR NOT CMAKE_INSTALL_COMPONENT)
  file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/swipl/doc" TYPE FILE MESSAGE_NEVER FILES "/Users/cantor/src/swipl-devel/build/home/doc/manindex.db")
endif()

EDIT.
Building version 8.3.10-33-g87d574f41 is OK on the Big Sur. Now I suspect the error was introduced in the recent version.

% swipl

Welcome to SWI-Prolog (threaded, 64 bits, version 8.3.10-33-g87d574f41)

SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.