Boost logo

Boost-Build :

Subject: [Boost-build] Boost build tutorial and target-os
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-09-24 20:29:07

In the Boost build tutorial these lines are given:

exe hello : hello.cpp ;
install install-bin : hello : <target-os>windows:<location>"C:/Program
Files/hello" <target-os>linux:<location>/usr/local/bin ;

followed by the explanation:

The feature <target-os> is another feature with mutually exclusive
values. It can be set for example to windows or linux but not to both.

This makes no sense since the example given is showing that the feature
<target-os> is being used for 'windows' and 'linux'. The explanation is
either that <target-os> is not a feature with mutually exclusive values
or that the 3rd parameter to the 'install' rule specifies default
values, but I have no idea from the tutorial which is the case.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at