Boost logo

Boost-Build :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2007-08-24 16:02:49


I'm using BBv2 from trunk revision 38872.
I have a simple Jamfile setup to run some unit tests that has:

unit-test my_test
     : ../../source/my_test.cpp
     :
       <toolset>msvc-8.0:<define>_CRT_SECURE_NO_DEPRECATE=1
       <toolset>msvc-8.0:<define>_SCL_SECURE_NO_DEPRECATE=1
     ;

Now if i execute:

bjam my_test

It correctly chooses msvc-8.0 as the default toolset to compile with but
doesn't define these macros.

If I change the bjam invocation to

bjam my_test toolset=msvc-8.0

The macros get defined.

If I change the Jamfile to

unit-test my_test
     : ../../source/my_test.cpp
     :
       <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE=1
       <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE=1
     ;

the macros get defined with either bjam invocation
however this isn't what I really mean.. I want to turn the macros on for
only msvc-8.0

Thanks,

Michael Marcin


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