I'm trying to add boost library to my project via FetchContent.
In my CmakeLists.txt i wrote:
FetchContent_Declare(
boost
GIT_REPOSITORY https://github.com/boostorg/boost.git
GIT_TAG master
)
FetchContent_MakeAvailable(boost)
include_directories(${Boost_INCLUDE_DIRS})
But when i'm trying to include something from boost i'm getting error. Include example:
#include <boost/container/flat_set.hpp>
Error:
C:/rep/OrderBook/src/orders/Order.h:14:10: fatal error: boost/container/flat_set.hpp: No such
file or directory
14 | #include <boost/container/flat_set.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.