]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: append to Seastar_CXX_FLAGS
authorKefu Chai <kchai@redhat.com>
Sun, 5 Jul 2020 15:06:08 +0000 (23:06 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 6 Jul 2020 02:06:15 +0000 (10:06 +0800)
instead of overwriting Seastar_CXX_FLAGS, append to it. this change
allows user to set Seastar_CXX_FLAGS in the command line.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 054eab5a9be3a5c50fd156e2f2235f2453e267b9..8d5e64e431e5a3752938127e9c704e1630ab1ef7 100644 (file)
@@ -331,7 +331,14 @@ if(WITH_SEASTAR)
       build_dpdk(${CMAKE_BINARY_DIR}/src/dpdk)
     endif()
   endif()
-  set(Seastar_CXX_FLAGS "-Wno-error;-Wno-sign-compare;-Wno-attributes;-Wno-pessimizing-move;-Wno-address-of-packed-member;-Wno-non-virtual-dtor" CACHE STRING "" FORCE)
+  list(APPEND Seastar_CXX_FLAGS
+    "-Wno-error"
+    "-Wno-sign-compare"
+    "-Wno-attributes"
+    "-Wno-pessimizing-move"
+    "-Wno-address-of-packed-member"
+    "-Wno-non-virtual-dtor")
+  set(Seastar_CXX_FLAGS "${Seastar_CXX_FLAGS}" 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