Boost Interest :
Subject: Re: [Boost-cmake] building boost in subdirectory
From: Michael Jackson (mike.jackson_at_[hidden])
Date: 2009-12-17 10:20:28
1) Are you talking about creating a "Subset" of the boost distribution that
only includes the elements (headers/libraries) that you are interested in?
2) Or are you talking about building boost as part of your project via a
call to add_subdirectory()?
For (1) I have hacked up bcp to basically do that. This involves building
boost including "bcp", running bcp on the boost sources with arguments such
that the headers/modules/libraries that you want are then copied into
another completely different source location. If I did things correctly you
can then "cd" into that new directory, run cmake and then build boost and
only the libraries you are interested in will be built available.
For (2) you can probably set some "boost variables" before the
"add_subdirectory()" call to configure boost to your projects needs.
Or were you after a different use case?
On 12/17/09 10:04 AM, in article
John A." wrote:
> I didn't follow all the original messages but what would be wonderful would be
> and you could delete all the boost libs that you are not interested, just
> leaving (say) threads, asio, circular buffer - then tell BOOST to build only
> those that you had left SET(BOOST_BUILD_LIB1/2 ON) ... and use them at will in
> the remainder of your project.
> Is this what you are aiming at?
>> -----Original Message-----
>> From: boost-cmake-bounces_at_[hidden]
>> bounces_at_[hidden]] On Behalf Of troy d.
>> Sent: 07 December 2009 19:46
>> To: Discussion of the CMake-based build system for Boost
>> Subject: [Boost-cmake] building boost in subdirectory
>> Brought over from the main cmake list. Sorry about all the top-posting.
>> What I came up with on this is here: