Getting CMake error regarding add_subdirectory()

Getting the following error when trying to bazel build jpegli using CMake. I can see that after downloading via http_archive, tools folder is there in the downloaded folder but not present in the sandbox folder. Not sure why is it not getting copied to sandbox coz of which getting the following error. Please help here.

CMake Error at CMakeLists.txt:475 (add_subdirectory):
add_subdirectory given source “tools” which is not an existing directory.

Those who don’t know what “bazel” or “jpegli” things are would probably want to get a repository URL or at least the full CMakeLists.txt.

Here is the JPEGLi repo link. You can find the CMakeLists.txt file in it.