]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: warn if libstdc++ older than 5.1.0 is used 18837/head
authorKefu Chai <kchai@redhat.com>
Thu, 9 Nov 2017 06:35:00 +0000 (14:35 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 13 Nov 2017 04:35:15 +0000 (12:35 +0800)
commit1d0866af350a260a83c2e185e4f3eff1f2bb2f81
treee03dc998bd23ebaf76fba4d8b6ce316b4f634994
parent9ef5f20bf41e53a93445275e28c2be56c22d668f
cmake: warn if libstdc++ older than 5.1.0 is used

__GLIBCPP__ is used before 3.4.0, and gcc 4.8.0 and up is required to
build c++11 source, hence it's safe to check __GLIBCXX__. for the
versioning of libstdc++, see
https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html#abi.versioning,
for the magic number of 20150422ul see
https://gcc.gnu.org/develop.html#timeline.
for the reason why we want to have this warning, see
https://github.com/ceph/ceph/pull/18755#issuecomment-342736554 .

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