samedi 27 décembre 2014

Can't build project after extracting Boost source

I have a C++ project that I'm building with CMake on OS X. The project has a lib and src directory where I keep external libs and the code I create respectively.


I've extracted the source of filesystem, asio and string from boost into libs resulting in a folder called boost and a folder called libs.


I'm trying to get CMake to build the boost libraries but it fails:



FAILED: /usr/bin/c++ -std=c++11 -Weverything -pedantic -Wno-c++98-compat -Wno-padded -Wno-exit-time-destructors -Wno-c++98-compat-pedantic -Wno-global-constructors -Wno-weak-vtables -Wno-undef -Wno-old-style-cast -g -Ilib -MMD -MT CMakeFiles/http://atomic.dir/lib/libs/atomic/src/lockpool.cpp.o -MF CMakeFiles/http://atomic.dir/lib/libs/atomic/src/lockpool.cpp.o.d -o CMakeFiles/http://atomic.dir/lib/libs/atomic/src/lockpool.cpp.o -c lib/libs/atomic/src/lockpool.cpp
In file included from lib/libs/atomic/src/lockpool.cpp:19:
lib/boost/atomic/capabilities.hpp:22:10: fatal error: 'boost/atomic/detail/caps_gcc_atomic.hpp' file not found
#include BOOST_ATOMIC_DETAIL_HEADER(boost/atomic/detail/caps_)
^
lib/boost/atomic/detail/platform.hpp:113:44: note: expanded from macro 'BOOST_ATOMIC_DETAIL_HEADER'
#define BOOST_ATOMIC_DETAIL_HEADER(prefix) <BOOST_JOIN(prefix, BOOST_ATOMIC_DETAIL_PLATFORM).hpp>
^
1 error generated.


```


I have a logging library under lib that builds perfectly.


This is my CMakeLists.txt file: https://gist.github.com/ruipacheco/659bd1656167470f0aa3


Is there anything specific I need to configure?


Aucun commentaire:

Enregistrer un commentaire