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>
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