whoops, forgot to cc jamming
--------
Not at my jam-enabled machine right now so I can't test, but
it seems
like you need to put SubInclude statements in either your
main Jam
file (to build from root dir) or your myExec Jamfile (to
build from
that dir, as in your example)
or, if you want to be able to build from either one, do
something like
what's mentioned here:
http://maillist.perforce.com/pipermail/jammi
ng/2006-July/002741.html
-John
On 3/1/07, Joshua ChaitinPollak <jpollak kivasystems.com> wrote:
> I'm sure this is a FAQ, but I can't seem to find an
answer... I have
> a project with static libraries and executables, and
I'm having
> trouble having the executables build the libraries.
>
> Specifically, I have a directory myProj, which
contains:
>
> Jambase
> Jamfile
> myLib/
> myExec/
>
> Inside myLib, there is myLib.cpp and Jamfile, which
contains:
>
> SubDir TOP myLib ;
>
> Library myLib : myLib.cpp ;
>
> Inside myExec, there is main.cpp and Jamfile, which
contains:
>
> SubDir TOP myExec ;
>
> Main myExec : main.cpp ;
> LinkLibraries myExec : myLib ;
>
>
> When I do the following, I get an error:
>
> cd myExec
> jam
>
> don't know how to make myLib.a
> <snip>
> ...skipped myExec for lack of myLib.a...
>
>
> How do I tell myExec where to find myLib.a, and better
yet, how to
> rebuild it if needed?
>
> Thanks,
>
> Josh
>
> --
> Joshua ChaitinPollak
> Software Engineer
> Kiva Systems
>
> _______________________________________________
> jamming mailing list - jamming perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
_______________________________________________
jamming mailing list - jamming perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
|