From: Kefu Chai Date: Thu, 21 Mar 2019 08:23:04 +0000 (+0800) Subject: cmake: disable -Werror when building seastar X-Git-Tag: v15.0.0~158^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27088%2Fhead;p=ceph.git cmake: disable -Werror when building seastar when building seastar with a recent fmt, fmt complains: src/fmt/include/fmt/time.h:13:2: error: #warning fmt/time.h is deprecated, use fmt/chrono.h instead [-Werror=cpp] #warning fmt/time.h is deprecated, use fmt/chrono.h instead ^~~~~~~ Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 39fbc1c336a2..a0e1a5229b3b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -297,7 +297,7 @@ if(WITH_SEASTAR) endmacro () set(Seastar_HWLOC OFF CACHE BOOL "" FORCE) set(Seastar_STD_OPTIONAL_VARIANT_STRINGVIEW ON CACHE BOOL "" FORCE) - set(Seastar_CXX_FLAGS "-Wno-sign-compare;-Wno-attributes;-Wno-pessimizing-move;-Wno-address-of-packed-member" CACHE STRING "" FORCE) + set(Seastar_CXX_FLAGS "-Wno-error;-Wno-sign-compare;-Wno-attributes;-Wno-pessimizing-move;-Wno-address-of-packed-member" CACHE STRING "" FORCE) add_subdirectory(seastar) # create the directory so cmake won't complain when looking at the imported # target: Seastar exports this directory created at build-time