[CMake] Target dependencies
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Mon Aug 25 12:07:37 EDT 2008
On 2008-08-25 16:30+0200 Boris Boesler wrote:
>
>> The DEPENDS of ADD_CUSTOM_TARGET expects file names, not target names. So
>> it can't find a file named foo...
>>
>> To set up inter-target dependencies, use ADD_DEPENDENCIES.
>
> Yeah, I just found that after sending the email, but that doesn't work
> either (cmake 2.6.1):
>
> ADD_CUSTOM_TARGET(foo
> COMMAND echo "foo"
> COMMENT "Fooing ..")
>
> ADD_CUSTOM_TARGET(bar
> COMMAND echo "bar"
> DEPENDS foo
> COMMENT "Bar-tender ..")
> ADD_DEPENDENCIES(bar foo)
You should get rid of that DEPENDS foo.
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
__________________________
More information about the CMake
mailing list