[Cmake] Converting from CMake 1.6 to CMake 1.8
Randy Casstevens
r_casste at hotmail.com
Mon, 26 Jan 2004 17:52:09 -0500
<html><div style='background-color:'><DIV class=RTE>
<P>When converting from CMake 1.6 to CMake 1.8, we ran into a problem with<BR>one of our targets.</P>
<P>Here is some example code that illustrates the problem:</P>
<P>> FOREACH(MY_TARGET<BR>> target1 target2 target3)<BR>> ADD_CUSTOM_TARGET(${MY_TARGET} some command...)<BR>> ADD_CUSTOM_COMMAND(<BR>> TARGET run<BR>> DEPENDS ${MY_TARGET}<BR>> )<BR>> ENDFOREACH(MY_TARGET)</P>
<P>When using CMake 1.6, the targets would be added to the dependency list<BR>for the run target. But, when we converted to CMake 1.8, the targets were<BR>not added to the dependency list. Why did this happen? How can it be<BR>fixed?</P>
<P>Thanks</P>
<P><BR><BR> </P></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2731??PS=">There are now three new levels of MSN Hotmail Extra Storage! Learn more.</a> </html>