Skip to content

Commit

Permalink
Include boost as a system directory to avoid compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anujkaliaiitd committed Apr 21, 2019
1 parent ec4ac54 commit 45db63c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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.
Expand Down

0 comments on commit 45db63c

Please sign in to comment.