Boost logo

Boost :

Subject: Re: [boost] [build] adding a rquirement for Cygwin only?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2015-03-02 13:10:19


AMDG

On 01/19/2015 09:34 AM, Peter Dimov wrote:
> Is it possible to add, for example, <threadapi>pthread to a project's
> requirements, but only for Cygwin?
>
> This works:
>
> <toolset>gcc,<target-os>windows:<threadapi>pthread
>
> but it also applies to MinGW.
>
> This only applies to MinGW:
>
> <toolset-gcc:flavor>mingw:<threadapi>pthread
>
> but Cygwin has no <flavor>.
>
> This:
>
> <toolset>gcc,<target-os>windows:<threadapi>pthread
> <toolset-gcc:flavor>mingw:-<threadapi>pthread
>
> doesn't work.
>
> There are references to <target-os>cygwin in gcc.jam, but <target-os> is
> actually 'windows'.
>

The correct <target-os> for Cygwin should be cygwin, not
windows. The problem is that target-os is not auto-detected
and defaults to being the same as host-os.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk