[build2] Rerunning build2 and getting different results (errors)
Boris Kolpackov
boris at codesynthesis.com
Tue May 16 13:23:14 UTC 2023
Wilhelm Meier via users <users at build2.org> writes:
> https://github.com/wimalopaan/build2_test
>
> [...]
>
> Please give me some hints.
I gave the hint and the reference to the relevant documentation in my
previous reply: you need to include buildfiles that declare targets
that you reference. Specifically, your src/test/buildfile should be:
```
include ../libs/A/
include ../libs/B/
exe{test}: cxx{test} ../libs/A/lib{A} ../libs/B/lib{B}
```
If you want to be fancy, you can add an export stub for lib{A} and lib{B}
in which case you will be able to write:
```
import libs = lib{A} lib{B}
exe{test}: cxx{test} $libs
```
More information about the users
mailing list