I have a jam file hierarchy as follows:
Jamroot:
lib foo : <file>/SOME/RANDOM/FILE ;
build-project p1 ;
build-project p2 ;
Jamfile in p1:
lib bar : bar.cpp
Jamfile in p2:
lib bar2 : bar2.cpp ../p1//bar ..//foo ;
So bar2 depends on bar and foo using relative paths.
Is it possible to write a single command in Jamroot so that I can write the following in Jamfile in p2 instead?
lib bar2 : bar2.cpp /p1//bar //foo ;
That would be more convenient as you don't need to think of the relative path anymore.
I know there is the use-project
command, but 1) I would need to write a use-project for each of the subdirectories, 2) I don't know how to declare the root folder using use-project...
thanks!