<html>
<body>
I suppose it is a documentation bug:<br>
&nbsp;&nbsp; <br>
<b>ADD_CUSTOM_TARGET</b>: Add a target with no output so it will always
be built.<br><br>
<pre>&nbsp; ADD_CUSTOM_TARGET(Name [ALL] [command1 [args1...]]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[COMMAND command2 [args2...] ...]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[DEPENDS depend depend depend ... ])

</pre>Adds a target with the given name that executes the given commands
every time the target is built. If the ALL option is specified it
indicates that this target should be added to the default build target so
that it will be run every time. The command and arguments are optional.
If not specified, it will create an empty target. The ADD_DEPENDENCIES
command can be used in conjunction with this command to drive custom
target generation. The command cannot be called ALL. <br><br>
There should be a line explaining what DEPENDS does.&nbsp; It basically
is used to add depend files,<br>
not targets.<br><br>
-Bill<br><br>
<br>
At 01:11 PM 12/5/2005, Moreland, Kenneth wrote:<br>
<blockquote type=cite class=cite cite="">Thanks Alex.&nbsp; That
workaround works for me.<br><br>
However, this still seems like a bug.&nbsp; Should I add it to the bug
tracker?<br><br>
-Ken <br><br>
&gt; -----Original Message-----<br>
&gt; From: Alexander Neundorf
[<a href="mailto:a.neundorf-work@gmx.net" eudora="autourl">
mailto:a.neundorf-work@gmx.net</a>] <br>
&gt; Sent: Saturday, December 03, 2005 8:16 AM<br>
&gt; To: Moreland, Kenneth<br>
&gt; Cc: cmake@cmake.org<br>
&gt; Subject: Re: [CMake] Having one custom target depend on
another.<br>
&gt; <br>
&gt; &gt; Von: &quot;Moreland, Kenneth&quot;
&lt;kmorel@sandia.gov&gt;<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; With CMake 2.2 I'm having trouble making one custom target
<br>
&gt; depend on <br>
&gt; &gt; another.&nbsp; Here is a small CMakeLists.txt file that
demonstrates the <br>
&gt; &gt; problem.<br>
&gt; &gt;&nbsp; <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; PROJECT(TEST NONE) <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; ADD_CUSTOM_TARGET(hello) <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; ADD_CUSTOM_TARGET(world DEPENDS
hello)<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; CMake generates build make files for this just fine.&nbsp; If
you type <br>
&gt; &gt; &quot;make hello&quot;, it works as expected.&nbsp; If you type
&quot;make world&quot; (with <br>
&gt; &gt; the GNU version of make) you get the following error:<br>
&gt; &gt;&nbsp; <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; make[3]: *** No rule to make target
`hello', needed by `world'. <br>
&gt; &gt; Stop. <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; make[2]: *** [CMakeFiles/world.dir/all]
Error 2 <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; make[1]: ***
[CMakeFiles/world.dir/rule] Error 2 <br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; make: *** [world] Error 2<br>
&gt; &gt;&nbsp; <br>
&gt; &gt; This looks like a bug to me.&nbsp; Is it?&nbsp; Is there a
workaround? <br>
&gt;&nbsp; <br>
&gt; Try ADD_DEPENDENCIES(world hello) instead of the &quot;DEPENDS&quot;
parameter. <br>
&gt;&nbsp; <br>
&gt; Bye<br>
&gt; Alex <br>
&gt;&nbsp; <br>
&gt; <br>
&gt; -- <br>
&gt; Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX
DSL_Cityflat,<br>
&gt; DSL-Flatrate für nur 4,99 Euro/Monat*&nbsp;
<a href="http://www.gmx.net/de/go/dsl" eudora="autourl">
http://www.gmx.net/de/go/dsl</a><br>
&gt; <br>
&gt; <br><br>
_______________________________________________<br>
CMake mailing list<br>
CMake@cmake.org<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" eudora="autourl">
http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></body>
</html>