If you're adding libigl as a submodule to your project, you should add it recursively so that all of its submodules are also pulled in:
git submodule add https://github.com/libigl/libigl.git git submodule update --init --recursive