[CMake] custom target (kernel modules)

Clark J. Wang dearvoid at gmail.com
Thu Jun 28 21:50:59 EDT 2007


On 6/29/07, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
>
> On 2007-06-29 09:04+0800 Clark J. Wang wrote:
>
> > On 6/28/07, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
> >>
> >> On 2007-06-28 10:08-0400 Alexandru Ciobanu wrote:
> >> > If I use the ALL parameter in add_custom_target() it will always
> rebuild
> >> it,
> >> > even if none of source files has changes.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> > Hi Alan, I have a question here. Why bother to call both
> ADD_CUSTOM_COMMAND
> > and ADD_CUSTOM_TARGET? It seems like only ADD_CUSTOM_TARGET with ALL
> > parameter is enough. Does your method have some advantage?
>
> See above quote from Alexandru.  Also, if you read the ADD_CUSTOM_TARGET
> documentation, the reason why it always rebuilds is fully explained there.
>
> "The target has no output file and is ALWAYS CONSIDERED OUT OF DATE...."


I see. Thank you so much.

Alan
>
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and
> Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting
> software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070629/65f4650c/attachment.htm


More information about the CMake mailing list