boost-cmake / boost

Cmake-based build of boost
Boost Software License 1.0
58 stars 24 forks source link

make install fails #13

Open quantitative-technologies opened 6 years ago

quantitative-technologies commented 6 years ago

After

cmake .
make

make install give an error that it cannot find boost/libs/beast/include.

pfultz2 commented 6 years ago

You want to make a separate build directory, try:

mkdir build
cd build
cmake ..
make
quantitative-technologies commented 6 years ago

That made no difference.

After cmake .. there is the message: Build files have been written to: /home/james/src/boost that the build files are in the parent directory. Then

cd ..
make 
make install

fails as before on make install.

pfultz2 commented 6 years ago

After cmake .. there is the message: Build files have been written to: /home/james/src/boost that the build files are in the parent directory. Then

I am not sure why that didn't work, but the problem is that it is writing the build files into the source directory.

quantitative-technologies commented 6 years ago

I had to delete CMakeCache first, so it would build in a separate directory. However, this still did not fix the problem: Exactly the same error is occurring on make install.

quantitative-technologies commented 6 years ago

I was able to install by making the following change to CMakeLists.txt:

set(EXCLUDE_LIBS beast callable_traits mp11 poly_collection stacktrace)