Boost logo

Boost-Build :

From: Mark Evans (evans_mark_at_[hidden])
Date: 2006-05-04 23:16:21


Hi Emil,
  
  Your code does not put <threading>multi in the project's usage-requirements. That's what you have to do to cause users of this project to have <threading>multi in their build properties.
  
  I'm not sure if character '/' (slash) is allowed in a project name. Have you seen examples of that?
  
  Mark
  
  You wrote:
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import os ;

if [ os.name ] = NT
{
    reqts = <link>shared:<define>BOOST_THREAD_BUILD_DLL=1 ;
}
else
{
    # Declare the uses system library
    lib pthread : : <name>pthread ;
    usage = <library>pthread ;
}

project boost/thread
    : source-location ../src
    : usage-requirements $(usage)
    : requirements $(reqts) <threading>multi
    : default-build <threading>multi
    ;

CPP_SOURCES = condition mutex recursive_mutex thread xtime once
                  exceptions barrier tss tss_hooks tss_dll tss_pe ;

lib boost_thread
   : $(CPP_SOURCES).cpp
   ;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Ideally I want any of my projects that ends up linking boost_thread to have
been built with <threading>multi without me having to specify it explicityl
in my requirements. But it doesn't seem to work.

  



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