My project uses CMake's externalproject module for pulling in dependencies not found on the host system. It was a great idea until I actually started working on the project's source code again.
Whenever I "make myproject", all dependencies are also pulled in to the make command. This means all repositories are pulled, all configure scripts are executed, and all dependencies are re-installed. Given the number and size of dependencies, this can take an annoying 20 seconds.
Is there a way to to tell CMake to build an externalproject exactly once and then ignore it if it was successful in the future?