[CMake] ExternalProject, continuous integration and caching builds

Innokentiy Alaytsev alaitsev at gmail.com
Wed Sep 5 10:55:46 EDT 2018


Hello!

You may try to perform some kind of "caching" actions yourself: store a
checksum for the downloaded dependency archive and only build it if its
checksum changes or the dependency with this checksum hasn't been already
built. You may only store the checksum for the archive download link if it
is possible to guarantee that the link is different for different versions
of the dependency.

Here
<https://gitlab.com/UtilityToolKit/utk.cmake/blob/master/utk_cmake_package.cmake#L76>  
you may find an ugly implementation of a similar logic.

Best regards,
Innokentiy



--
Sent from: http://cmake.3232098.n2.nabble.com/


More information about the CMake mailing list