Boost logo

Boost :

Subject: Re: [boost] CMake Modularization
From: Peter Dimov (lists_at_[hidden])
Date: 2016-09-27 16:41:10

Philip Woods wrote:
> I created an example project
> to demonstrate my
> ideas. I added CMake build support to the minimum number of modules needed
> to support this demo:
> and

A few questions come to mind... why is filesystem on master and the others
on develop?

In filesystem/CMakeLists.txt, shouldn't

STRING "Location of boost.system headers")

refer to FILESYSTEM instead?

As far as I can see libs/CMakeLists.txt requires the add_subdirectory calls
to be properly ordered. Isn't this inconvenient? I suppose it's fine for
this case where there are only five lines, but not all libraries are like

Why does the Filesystem CMakeLists.txt file require C++11?

Does this actually work? When I do 'make' I get

D:/tmp/cmake-boost-filesystem-test/test.cpp:3:32: fatal error:
boost/filesystem.hpp: No such file or directory
#include <boost/filesystem.hpp>

When I fix the above problem in filesystem/CMakeLists.txt, I get:

In file included from
                 from D:/tmp/cmake-boost-filesystem-test/test.cpp:3:
fatal error: boost/type_traits/is_array.hpp: No such file or directory
#include <boost/type_traits/is_array.hpp>

which is correct, there is no type_traits.

You've probably tested in on a machine with a system Boost installation.

Boost list run by bdawes at, gregod at, cpdaniel at, john at