Boost logo

Boost-Build :

From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-01-14 09:42:04


Hello.

According to the documentation each property not defined as 'optional'
has a default value. I've attached a test where I have defined a
composite property. The property is properly reflected in the build
path. However it is is not used when building the target. Here is the
question again - bug or feature? :-)

Zbynek

...found 10 targets...
...updating 7 targets...
MkDir1 bin
MkDir1 bin\msvc
MkDir1 bin\msvc\debug
MkDir1 bin\msvc\debug\arit-float
msvc.compile.c++ bin\msvc\debug\arit-float\test.obj
test.cpp
test.cpp(2) : fatal error C1189: #error : "No ARIT_* defined!"

call "c:\program files\microsoft visual
studio\vc98\bin\vcvars32.bat" > nul
cl /Zm800 -nologo -TP /Z7 /Od /Ob0 /GX /GR /MDd -c
-Fo"bin\msvc\debug\arit-float\test.obj" "t
est.cpp"

...failed msvc.compile.c++ bin\msvc\debug\arit-float\test.obj...
...failed updating 1 target...
...updated 4 targets...
 --------------020406050900000206020003 Content-Type: text/plain;
name="Jamfile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Jamfile"

exe test : test.cpp ;
 --------------020406050900000206020003 Content-Type: text/plain;
name="project-root.jam"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="project-root.jam"

import feature : feature compose ;

feature arit
: float double fixed debug
: propagated link-incompatible composite symmetric
;

feature.compose <arit>float : <define>ARIT_FLOAT ;
feature.compose <arit>double : <define>ARIT_DOUBLE ;
feature.compose <arit>fixed : <define>ARIT_FIXED ;
feature.compose <arit>debug : <define>ARIT_DEBUG ;

 --------------020406050900000206020003 Content-Type: text/plain;
name="test.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="test.cpp"

#if !defined(ARIT_DOUBLE) && !defined(ARIT_FIXED) && !defined(ARIT_DEBUG) && !defined(ARIT_FLOAT)
#error "No ARIT_* defined!"
#endif

int main()
{
return 0;
}
 --------------020406050900000206020003--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk