]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
boost: Make inclde paths SYSTEM includes
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 8 Nov 2016 19:18:48 +0000 (14:18 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 17 Nov 2016 00:54:31 +0000 (19:54 -0500)
We are not debugging Boost and do not need to see its warnings.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
CMakeLists.txt

index 61eca7e7c0450f6757578790ac1b7186e7883f05..6d098e80a5c3be432e1b4c407de0c30c6e4cf4cf 100644 (file)
@@ -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=<n>
   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")