diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d0f5579..79504346 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,6 +146,15 @@ set(SOURCES src/util/huge_alloc.cc src/util/tls_registry.cc) +# Boost +find_package(Boost) +if(Boost_FOUND) + message(STATUS "Boost include directory = ${Boost_INCLUDE_DIRS}") + include_directories(system ${Boost_INCLUDE_DIRS}) +else() + message(FATAL_ERROR "Boost not found.") +endif() + # Transport-specific. Mellanox OFED drivers are the best choice for raw and # infiniband, but they do not play well with DPDK. So we compile only one # transport. Other transports are exluded using preprocessor macros.