Boost logo

Boost Interest :

From: Miguel A. Figueroa-Villanueva (miguelf_at_[hidden])
Date: 2008-07-02 16:45:23


On Wed, Jul 2, 2008 at 4:38 PM, Doug Gregor wrote:
> On Wed, Jul 2, 2008 at 4:31 PM, Miguel A. Figueroa-Villanueva wrote:
>> On Wed, Jul 2, 2008 at 2:06 PM, David Abrahams wrote:
>>> troy d. straszheim wrote:
>>>> and those HEADERS from each library will get moved from toplevel boost/
>>>> to each library's libs/*/include/boost directory. This currently
>>>> requires 'rsync' and 'rm' presumably working only unixy platforms,
>>>> which should be fine, there's nothing about this that needs extensive
>>>> special testing on windows. Who knows, maybe under cygwin it would work.
>>>
>>> I'm certain that it would; cygwin is POSIX.
>>> Could you use something like python's shutil.copytree or
>>> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/231501 to do
>>> this portably?
>>
>> cmake can handle this cross-platform... if you type 'cmake -E' it will
>> give a list of commands that it can support. Notice: remove,
>> remove_directory, make_directory, and copy_directory. Through custom
>> commands it can be made to work in all platforms.
>
> Ah, so this would be done at configuration time, then? I could imagine
> toggling a "BOOST_AUTO_MODULARIZE" option within the CMake GUI, and
> having the next "Configure" run do all of the directory-shifting.

It can do it both at configure or with a make target.

If you use something like: "execute_process(cmake -E copy_directory
....)" it will be run at configure time.

With something like: "add_custom_target(modularize cmake -E
copy_directory ...)" then it can be run at run-time as "make
modularize" or through the IDE.

--Miguel


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