Boost logo

Boost-Build :

Subject: Re: [Boost-build] Detecting Boost version
From: niXman (i.nixman_at_[hidden])
Date: 2012-05-25 19:20:32


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? ;)

-- 
Regards,
  niXman
___________________________________________________
Dual-target(i686/x86_64) MinGW compiler for i686/x86_64 hosts:
  http://sourceforge.net/projects/mingwbuilds/

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