[CMake] Bug or misusage ???

Philippe Poilbarbe Philippe.Poilbarbe at cls.fr
Wed Mar 8 05:51:36 EST 2006


Brad King a écrit :
> ...
> Use a full path for BRATHL_UNITFILE:
>
> SET(BRATHL_UNITFILE "${CMAKE_CURRENT_BINARY_DIR}/brathl_units.dat")
>
> The problem is that relative paths are ambiguous in the case of custom
> commands.  CMake versions up to 2.2 (current release) ignored relative 
> paths listed as dependencies that were not the names of targets.
>
> In CVS CMake the dependency on just plain "brathl_units.dat" is 
> treated as relative to the source directory, which will not work for 
> your case either.  Therefore you should just use the full path.
> ...
Ok, it worked fine.
I did not think about this because the individual targets and the clean 
target was correctly generated.
It may be nice to specify in the documentation where full paths are 
needed, where they are not and
in the case of relative path from where they are relative.

Many thanks.
Philippe.



More information about the CMake mailing list