]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: bail out if GCC version is less than 5.1 19344/head
authorKefu Chai <kchai@redhat.com>
Tue, 5 Dec 2017 14:59:48 +0000 (22:59 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 5 Dec 2017 14:59:48 +0000 (22:59 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index c75a845fd876a353bc051329d6624974b3b1e3d6..c835525f917383ab95cb34cd39f5f6a17382e9fe 100644 (file)
@@ -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.