Hi,<br><br>I am trying out build2 and I have to say the first impression is that of a very<br>elegant tool.<br><br>In my test project, I put a small header-only library that I store in a<br>directory with the canonical library project structure that I instantiated with<br><div>`bdep new`, roughly like this:<br></div><br>``` text<br>libsomething/<br>├── build/<br>├── libsomething/<br>│   ├── something.hxx<br>│   ├── export.hxx<br>│   ├── version.hxx.in<br>│   └── buildfile<br>├── tests/<br>│   ├── basics/<br>│   │   ├── driver.cxx<br>│   │   └── buildfile<br>│   └── ...<br>├── buildfile<br>└── ...<br>```<br><br>Libsomething has some conditional compilation done with a preprocessor macro<br>(say, `#ifdef TRACE`) in "something.hxx". I want to have TRACE defined for<br>libsomething when I run `b test`.<br><br>``` shell<br>$ cat libsomething/tests/basics/buildfile<br>import libs = libsomething%lib{something}<br><br>cxx.poptions += -DTRACE ## ADDED<br><br>exe{driver}: {hxx ixx txx cxx}{**} $libs<br>```<br><br>Simply adding the `cxx.poptions`, like above, does not seem to enable TRACE for<br><div>libsomething for testing.<br></div><br>I have been jumping all over the documentation for the past two hours with<br>little success. Any hints for what is the idiomatic build2 way to have a test<br>driver build/link a library in a case like mine?<br><br>Best regards,<br>Artur<br><br>