Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake external_project_add not discussed #4

Closed
alecjacobson opened this issue Oct 15, 2018 · 1 comment
Closed

cmake external_project_add not discussed #4

alecjacobson opened this issue Oct 15, 2018 · 1 comment

Comments

@alecjacobson
Copy link
Contributor

AFAIK our new external_project_add method for pulling in dependencies is not discussed on index.md or elsewhere. Since this still may be unusual for many users, it'd be nice to have a short description of what it's doing.

@jdumas
Copy link
Collaborator

jdumas commented Oct 16, 2018

How about this:

Dependencies

Libigl uses CMake's ExternalProject_Add to manage external dependencies. External libraries are build statically with libigl using CMake. In order to be included in the CMake script via add_subdirectory, the third-party content is fetched at CMake time using the DownloadProject.cmake script (which has been introduced in CMake itself with the command FetchContent in CMake 3.11).

There is not much to know about this, other than the content will be fetched the first time you run CMake, and placed into the external/ folder. If something goes wrong with your dependencies, simply erase your external/ folder and run CMake again. The exact version of each external dependencies used by libigl are recorded in the file cmake/LibiglDownloadExternal.cmake.

If that's ok, I'll add it to the index.md (until I figure out the python stuff to build the website on other machines).

@jdumas jdumas closed this as completed in 42bf92e Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants