[Insight-users] ITK building twice?

Brad King brad.king at kitware.com
Mon Aug 16 08:44:39 EDT 2010


On 07/31/2010 02:51 PM, Steve M. Robbins wrote:
> I find that the sequence "cmake, make, make install" rebuilds ITK at
> the "make install" step for some reason.  This doubles the build time
> of an already-huge build.

FYI, you can bypass the second build with "make install/fast".
This skips the install->all dependency.

> Has anyone else noticed this and/or found a cure?
> 
> I'm building on linux systems -- it's the Debian package builds which
> occur on a dozen platforms.  The build is perhaps unusual in that I
> use cswig wrapping for tcl, python, AND java.

Due to complex dependencies introduced by the cswig wrapping process,
the build rules actually tell CMake to regenerate the build tree
after the first build.  The second time around adds a bunch of
dependencies that could not be computed the first time.  Many years
ago when that approach was first written we did not have problems
with building twice the first time, but AFAIK that code has not been
maintained much for years.  I would not be surprised if the second
time CMake generates the build tree (from slightly changed input
files) the build rules change enough to cause a rebuild.

-Brad


More information about the Insight-users mailing list