From c0681246ef7c9797d3ccb9884d3df1f3ae4bd761 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Tue, 8 Nov 2016 14:18:48 -0500 Subject: [PATCH] boost: Make inclde paths SYSTEM includes We are not debugging Boost and do not need to see its warnings. Signed-off-by: Adam C. Emerson --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61eca7e7c04..6d098e80a5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -408,7 +408,7 @@ if (WITH_SYSTEM_BOOST) set(Boost_USE_STATIC_LIBS ON) endif() else() - set(BOOST_CFLAGS "-fPIC") # check on arm, etc <---XXX + set(BOOST_CFLAGS "-fPIC -w") # check on arm, etc <---XXX set(BOOST_J 1 CACHE STRING "max jobs for Boost build") # override w/-DBOOST_J= message(STATUS "BUILDING Boost Libraries at j ${BOOST_J}") @@ -461,8 +461,8 @@ endif() # require minimally the bundled version find_package(Boost 1.61 COMPONENTS thread system regex random program_options date_time iostreams REQUIRED) -include_directories(${Boost_INCLUDE_DIRS}) -include_directories(${PROJECT_BINARY_DIR}/include) +include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) +include_directories(SYSTEM ${PROJECT_BINARY_DIR}/include) if (NOT WITH_SYSTEM_BOOST) LIST(APPEND Boost_LIBRARIES "-lz") -- 2.39.5