Matze Braun <mat...@braunis.de> writes:
Hi again,
I'm having a Jamfile like this:
LOCATE = out ;
Main foo : source/bar.cpp ;
Here you are using a target name of "source/bar.cpp" but you will find
that you are fighting the spirit of Jam doing this. The best way to
do what you want is this:
LOCATE_TARGET = out ;
SEARCH_SOURCE += source ;
Main foo : bar.cpp ;
or, if you know that just bar.cpp is in the source dir:
LOCATE_TARGET = out ;
LOCATE on bar.cpp = source ;
Main foo : bar.cpp ;
The idea is to use SEARCH and LOCATE to attach directory names to
targets.