]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: check gcc version not release date for libstdc++ saneness
authorKefu Chai <kchai@redhat.com>
Mon, 13 Nov 2017 07:08:18 +0000 (15:08 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Nov 2017 07:22:36 +0000 (15:22 +0800)
commit306edd149bbdde3ef9da06d9e85db93e2efc28e9
treedd7d0b2fd6cdb3e82dcd0969325dc8cde0d962a9
parent571a786afcaba6e07f6a70313ce78a2dd66b712a
cmake: check gcc version not release date for libstdc++ saneness

there is chance that the release date of a minor or patch version of
libstdc++/gcc is *greater* than that of a major version. so this renders
the existing approach to check the __GLIBCPP__ useless. let's check the
gcc version instead. it's far from a perfect solution. but it's good
enough to cover most cases. assuming that most users use gcc with
libstdc++ comes with it. instead of using 1) gcc with a newer libstdc++,
or 2) clang with a old libstdc++.

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