Subject: [Boost-build] Alias problem
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2009-04-03 08:14:11


I have a library project with directory structure like this

Mylib/ ---+---- src files
          +---- build/ --- jamfile
          +---- test/ ---- jamfile

The test directory contains files for unit testing.

Now in test/jamfile, I tried to create an alias for myLib

alias mylib : ../build : <define>_UNIT_TEST ;

Project : requirements
        <library>mylib
        <link>static
      ...

For testing I need to get the src files compiled under _UNIT_TEST
defined. Unfortunately it looks like that all src files are still
compiled without _UNIT_TEST.

Thanks,
Sherwood