[CMake] ExternalProject: avoiding rebuilds
Rolf Eike Beer
eike at sf-mail.de
Sat Sep 24 04:11:11 EDT 2011
Am Freitag, 23. September 2011, 16:26:46 schrieb Ben Medina:
> Hello all,
>
> I'm trying to adopt greater usage of ExternalProject in my project.
> One problem I'd like to resolve is spurious rebuilds of external
> projects.
[...]
> This works great: building "test" first untars the CLAPACK source and
> builds it, as expected. However, if I rebuild test (i.e. in Visual
> Studio, right-click on test and rebuild), then the CLAPACK tarball get
> extracted *again*, and a full rebuild of CLAPACK happens. I'd expect
> that, unless the tarball is changed, a rebuild of the external project
> is a no-op.
>
> Is there a way to achieve my desired behavior?
Yes, use the correct option. Rebuild means "rebuild this target and all of
it's dependencies". There is a different option, something like "rebuild only
this target". Just use this one.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110924/7c42c4ce/attachment.pgp>
More information about the CMake
mailing list