|
Boost-Build : |
From: Phillip Seaver (phil_at_[hidden])
Date: 2007-08-25 10:30:05
Michael Marcin wrote:
> 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
I've had to use "<toolset-msvc:version>8.0" A quick search didn't find
why I had to do that, but I'm pretty sure I got the info off this list. :-)
HTH,
Phillip
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