On Thursday 14 June 2007 04:54, Philippe Fremy wrote: > Hi, > > In my project, I have very often a pattern like this: > a.cpp: > #include "z.h" > > b.cpp: > #include "z.h" > > c.cpp: > #include "z.h" > > > z.cpp: > #include "z.h" > > > If I change z.h and z.cpp to add a new method, I usually don't get z.h > to work out of the box, but only realize it when compiling z.cpp . > What's annoying is that cmake will first compile a.cpp , b.cpp , c.cpp > and then only z.cpp . > > It there any way to tell CMake "compile the cpp file whose name match > the header file first" ? > > I tried to specify direct targets, like: > make CMakeFiles/...more stuff.../z.obj > > but it was not successful either.
Try "make help" to get a list of all targets, there should be also one for the object file. Alex _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake