Re: [Boost-bugs] [Boost C++ Libraries] #10942: Boost.Thread fails to build on Cygwin

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10942: Boost.Thread fails to build on Cygwin
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-04 22:46:57


#10942: Boost.Thread fails to build on Cygwin
-------------------------------+-----------------------------
  Reporter: pdimov | Owner: steven_watanabe
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: build
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------------

Comment (by steven_watanabe):

 Use a conditional like this:

 {{{

 feature.feature threadapi : pthread win32 : optional propagated ;

 rule choose-threadapi ( properties * )
 {
     local result = [ property.select <threadapi> : $(properties) ] ;
     if $(result)
     {
         return $(result) ;
     }
     if <target-os>windows in $(properties)
     {
         return <threadapi>win32 ;
     }
     else
     {
         return <threadapi>pthreads ;
     }
 }
 }}}

 Note that this depends on <target-os>cygwin being set correctly,
 but that isn't Boost.Thread's problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10942#comment:12>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC