[CMake] bug ? changed behaviour of ADD_CUSTOM_COMMAND

Alexander Neundorf a.neundorf-work at gmx.net
Thu Sep 15 17:33:23 EDT 2005


Hi, 
 
since Makefile generator 2 the following cmake code doesn't work anymore: 
 
----------8<-----8<--------8<------------- 
 
ADD_CUSTOM_TARGET( world echo "world" DEPENDS hello) 
 
ADD_CUSTOM_TARGET( hello echo "hello" ) 
 
----------8<-----8<--------8<------------- 
 
Currently "make world" leads to  
make[3]: *** No rule to make target `hello', needed by `world'.  Stop. 
 
although the target "hello" is defined with the next command. 
With cmake 2.0 this did work and "make world" executed first "hello" and 
then "world". 
Is this change intentional ? 
 
Bye 
Alex 
 
 
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the CMake mailing list