[Cmake] Converting from CMake 1.6 to CMake 1.8 - Adding dependencies

Randy Casstevens r_casste at hotmail.com
Thu, 29 Jan 2004 10:27:01 -0500


In CMake 1.6 to add dependencies to a target you can do the following:

ADD_CUSTOM_COMMAND(
    TARGET run
    DEPENDS someTarget)

But, in CMake 1.8 to add dependencies you do the following:

ADD_DEPENDENCIES(run someTarget)

Also, it seems that the first command does not work in CMake 1.8 and the 
second command does not work in CMake 1.6.  Is this correct?

Thanks

Randy

_________________________________________________________________
Rethink your business approach for the new year with the helpful tips here. 
http://special.msn.com/bcentral/prep04.armx