From: Kefu Chai Date: Tue, 5 Dec 2017 14:59:48 +0000 (+0800) Subject: cmake: bail out if GCC version is less than 5.1 X-Git-Tag: v13.0.2~854^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19344%2Fhead;p=ceph.git cmake: bail out if GCC version is less than 5.1 Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c75a845fd876..c835525f9173 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -173,7 +173,9 @@ if(CMAKE_COMPILER_IS_GNUCXX AND # use old gcc with new libstdc++, but it covers the most cases. # # libstdc++ 4.9 has O(n) list::size(), and its regex is buggy - message(WARNING "performance regression is expected due to an O(n) implementation of 'std::list::size()' in libstdc++ older than 5.1.0") + message(SEND_ERROR "performance regression is expected due to an O(n) " + "implementation of 'std::list::size()' in libstdc++ older than 5.1.0, " + "Please use GCC 5.1 and up.") endif() ## Handle diagnostics color if compiler supports them.