Boost logo

Boost-Build :

Subject: [Boost-build] Setting default properties for a project
From: Anthony Foglia (AFoglia_at_[hidden])
Date: 2009-06-04 12:50:54


        We have a rather large project composed of multiple final executables,
and we're considering supporting compilation of both single and
multi-threaded versions. In our Jamroot, we have

project
    : requirements
          <threading>multi
          # some <define>s for different variants, and other stuff
    ;

So bjam debug -sthreading=single finds no targets to rebuild.[*]

        There is a default-build attribute for the project, but the only
examples I've seen use it to determine which variant to build.

        Is there a simple way to tell bjam to compile with <threading>multi
unless told otherwise?

[*] I also tried bjam debug threading=single, which I think is the new
syntax, with no difference, obviously.

-- 
Anthony Foglia
Princeton Consultants
(609) 987-8787 x233

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