we have sources written in C language, and they are compiled along with
C++ source files which uses Seastar library. so when the C compiler sees
the options exposed by seastar, it complains like
1: warning: command line option '-fconcepts' is valid for C++/ObjC++ but
not for C
with this change, only C++ options is added for C++ language.
Signed-off-by: Kefu Chai <kchai@redhat.com>
endif()
set_target_properties(crimson::cflags PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "${crimson_cflag_definitions}"
- INTERFACE_COMPILE_OPTIONS "-Wno-non-virtual-dtor"
+ INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CXX>:-Wno-non-virtual-dtor>
INTERFACE_LINK_LIBRARIES Seastar::seastar)
set(crimson_common_srcs