[CMake] BUG new makefile generator ?

Brad King brad.king at kitware.com
Tue Mar 29 08:53:26 EST 2005


Alexander Neundorf wrote:
> Hi, 
>  
> I have the following in CMakeLists.txt: 
>  
> ADD_CUSTOM_COMMAND(OUTPUT ecos/install/lib/target.ld 
>    COMMAND sh 
>    ARGS -c \" cd ecos\; ecosconfig tree\; make\; if [ -e  
>       install/lib/target.ld ] \; then touch install/lib/target.ld\; fi\" 
>    DEPENDS ecos/ecos.ecc 
> ) 
>  
> and this is what I get in 
> CMakeCustomRules.dir/ecos_install_lib_target.ld.make: 
>  
> ecos/install/lib/target.ld: 
> 	@echo "Generating ecos/install/lib/target.ld" 
> 	sh -c " cd ecos; ecosconfig tree; make; if [ -e 
> install/lib/target.ld ] ; then touch install/lib/target.ld; fi" 
>  
> The dependancy to ecos.ecc is missing. 
> This is what I would have expected, i.e. with the depedancy to ecos.ecc: 
>  
> ecos/install/lib/target.ld: ecos/ecos.ecc 
> 	@echo "Generating ecos/install/lib/target.ld" 
> 	sh -c " cd ecos; ecosconfig tree; make; if [ -e 
> install/lib/target.ld ] ; then touch install/lib/target.ld; fi" 
>  
> This is cmake from two weeks ago or something like this. 

Does this work in the old makefile generator?

Either way, please report this as a bug here:

http://www.cmake.org/Bug

For now try specifying the full path using ${CMAKE_CURRENT_BINARY_DIR} 
for all the paths.

-Brad


More information about the CMake mailing list