Boost logo

Boost-Build :

From: Matthew Herrmann (matthew.herrmann_at_[hidden])
Date: 2006-05-01 01:26:53

Hi All,

I am seeing a problem where conditional properties defined on variants are not
being activated when building against an inherited variant.

In the code below, I expect both DEBUG_FLAG and DEBUG_FLAG_2 to be defined
when compiling my_app. However, only DEBUG_FLAG is set.


project myapp ;

# define a variant suitable for testing position counts
variant debug_child
        : debug : <define>DEBUG_FLAG ;

exe my_app
    : # sources
    [ glob *.cpp ]

    : # requirements (debug/release, platform)


$ bjam -d+2 debug_child
gcc.compile.c++ bin/gcc/debug_child/test.o

    "ccache" "gcc" -Wall -ftemplate-depth-100 -O0 -fno-inline -g -fPIC
-DDEBUG_FLAG -c -o "bin/gcc/debug_child/test.o" "test.cpp"


Is there a workaround or a fix for this behaviour?

Thanks in advance,

Matthew Herrmann
Vice President, Software Architecture
Zomojo Pty Ltd

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at