[CMake] CMake 2.2 dependency check skip

David Cole david.cole at kitware.com
Wed Oct 19 13:33:48 EDT 2005


Don't know if it works or not... so slap me down if I'm way off base: 
but can you do a "make clean" and then a "make" in the subdirectory...?

Moreland, Kenneth wrote:

> The Makefile2 file is only at the top level.  I would really like to 
> skip the dependency check when compiling one of the subdirectories 
> (e.g. ParaView/Server/Filters).
>  
> -Ken
>
> ------------------------------------------------------------------------
> *From:* Ken Martin [mailto:ken.martin at kitware.com]
> *Sent:* Tue 10/18/2005 2:32 PM
> *To:* Moreland, Kenneth; cmake at cmake.org
> *Subject:* RE: [CMake] CMake 2.2 dependency check skip
>
> > With CMake 2.0 I would often run "make all" instead of just "make".
> > When running "make all", the build system would skip any dependency
> > checking and just compile whatever changed based on whatever
> > dependencies are known.  Whether intentional or not, I used this feature
> > frequently when compiling small changes in big projects such as ParaView
> > (a mode I am in often) since the dependency checking can take up to half
> > a minute.
> >
> > I notice that the makefiles built by CMake 2.2 now also do dependency
> > checking when "make all" is run.  Is there a target I can use to skip
> > the dependency checking?
>
> There isn't a convenience target for doing this but I believe the 
> following
> will do what you want
>
> make -f CMakeFiles/Makefile2
>
>
> Ken
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>  
>


More information about the CMake mailing list