How to compile libigl on a machine that could not download external dependencies
Describe your issue
I downloaded the source code of libigl and copied it to a linux machine that could not connect to the Internet. When I tried to compile a project with CMake commands like
option(LIBIGL_WITH_EMBREE "Use Embree" ON)
include(libigl)
, connection timed out error was reported during the download of embree.
I tried to pre-download embree and put it on the path "libigl/external", but nothing changed and cmake still tried to download embree and rasied timed out error.
How can I solve this problem? Also, I would like to ask if you can put the libigl dependencies in the source code in advance, instead of downloading these dependencies through cmake. Thank you for your help.
Checklist
- [x] I have read the bug report page
- [x] CMake issue: I have tried with a fresh clone/empty build directory
Platform
- [ ] Windows
- [ ] macOS
- [x] Linux
If you are on a machine without internet, you should specify FETCHCONTENT_SOURCE_DIR_<uppercaseName> for each third-party dependency required by Lagrange, and point the to a locally downloaded folder with the right version of each dependency. You may also want to enable FETCHCONTENT_FULLY_DISCONNECTED to prevent CMake from trying to connect to internet.