[Solved] CMake Error at CMakeLists.txt:92 (add_subdirectory)

When compiling GitHub project, you may encounter the following errors:

CMake Error at CMakeLists.txt:92 (add_subdirectory):
 The source directory
xxxxx

CMake Error at src/Runtime/CMakeLists.txt:56 (pybind11_add_module):
 Unknown CMake command "pybind11_add_module".

This is generally a lack of third-party dependencies. You can try the following command:

git submodule init && git submodule update

Reference:
https://stackoverflow.com/questions/59291154/cmake-error-at-cmakelists-txt994-add-subdirectory

Read More: