Boost logo

Boost Interest :

Subject: Re: [Boost-cmake] [wtf] /build /all modularizes your code on windows?
From: Brad King (brad.king_at_[hidden])
Date: 2009-05-25 10:06:02


troy d. straszheim wrote:
> Juergen Hunold just mentioned on IRC that he'd used the commandline
> interface on windows to make '/build /all', and his code got
> 'modularized' (a word I'm beginning to hate) and significantly damaged.

The problem is that "/all" builds all targets in the Visual Studio solution
file. CMake's equivalent to the Makefile "all" target in VS is ALL_BUILD.
It is a target that depends on the same targets that would be in the Makefile
"all" target. Building the solution with "/all" bypasses this and builds
everything, which ignores the EXCLUDE_FROM_ALL properties in CMake. There
is no way CMake can prevent this, so just tell users not to do it.

-Brad


Boost-cmake 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