]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: only apply C++ compile options to C++ language
authorKefu Chai <kchai@redhat.com>
Sat, 20 Jun 2020 04:01:55 +0000 (12:01 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 20 Jun 2020 04:02:13 +0000 (12:02 +0800)
commit4914bd08b0a3eab9adcf0a1d61d4c149445f7a16
tree4ca0531c3948afbc04722e84127df445b33d4840
parent9242da5a4745e7e7808d60cb2a6ac4be32f9267d
cmake: only apply C++ compile options to C++ language

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>
src/crimson/CMakeLists.txt