Boost logo

Boost-Build :

Subject: Re: [Boost-build] Detecting Boost version
From: Matt Chambers (matt.chambers42_at_[hidden])
Date: 2012-05-27 11:03:54

On 5/25/2012 6:20 PM, niXman wrote:
> 2012/5/26 Matthew Chambers:
>> I want to read the BOOST_LIB_VERSION definition in version.hpp at
>> parse-time; is this possible? If not, wouldn't an additional builtin rule
>> like MATCH_FILE be reasonable (runs a regex line-by-line against a file) and
>> easy to implement?
>> #if BOOST_VERSION == 105000
>> # include<boost/lockfree.hpp>
>> #endif
> Why do you need to parse the string? ;)
Because I need to do this logic in the jamfiles, not in a source file. I
am modifying Rene's boost.jam extension file so that it can build boost
from multiple versions without having to have the version explicitly
passed to it.


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