From: Kefu Chai Date: Fri, 23 Feb 2018 06:45:10 +0000 (+0800) Subject: cmake: update for accomodate seastar X-Git-Tag: v14.0.1~1153^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8aac132dc49c3e54c442cacaaf6f223195a634fc;p=ceph.git cmake: update for accomodate seastar * add unit_test_framework for appease seastar's find_package() call, even we don't build seastar's tests * some seastar functions declare their return value like: const size_t str_len(...). and GCC does not like the "const" in it. so silence it Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 77b7438515a8..86408f7ecac4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -589,7 +589,8 @@ option(WITH_SYSTEM_BOOST "require and build with system Boost" OFF) # Boost::thread depends on Boost::atomic, so list it explicitly. set(BOOST_COMPONENTS - atomic chrono thread system regex random program_options date_time iostreams) + atomic chrono filesystem thread system regex random program_options date_time + iostreams unit_test_framework) set(BOOST_HEADER_COMPONENTS container) if(WITH_MGR) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4fa6b1eaf98e..a0525d9007d1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -34,6 +34,7 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith -Werror=format-security -fno set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-1024") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-ignored-qualifiers") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unknown-pragmas") if(CMAKE_CXX_COMPILER_ID STREQUAL GNU) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic") @@ -388,6 +389,7 @@ include_directories("${CMAKE_SOURCE_DIR}/src/dmclock/support/src") include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/src/googletest/googletest/include") if(WITH_SEASTAR) + set(SEASTAR_ENABLE_TESTS OFF CACHE BOOL "disable seastar testing") add_subdirectory(seastar) endif()