This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new b919343c build(cmake): update compiler version requirement (#2455)
b919343c is described below

commit b919343c70b9c20a627fc0dd8d79b3213910ed84
Author: Twice <[email protected]>
AuthorDate: Wed Jul 31 23:44:30 2024 +0900

    build(cmake): update compiler version requirement (#2455)
---
 CMakeLists.txt | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1719aa0c..3542cf6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,20 +42,20 @@ endif()
 find_package(Backtrace REQUIRED)
 
 if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
-    if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7)
-        message(FATAL_ERROR "It is expected to build kvrocks with GCC 7 or 
above")
+    if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8)
+        message(FATAL_ERROR "It is expected to build kvrocks with GCC 8 or 
above")
     endif()
 elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
-    if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5)
-        message(FATAL_ERROR "It is expected to build kvrocks with Clang 5 or 
above")
+    if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8)
+        message(FATAL_ERROR "It is expected to build kvrocks with Clang 8 or 
above")
     endif()
 elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
-    if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10)
-        message(FATAL_ERROR "It is expected to build kvrocks with Xcode 
toolchains 10 or above")
+    if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11)
+        message(FATAL_ERROR "It is expected to build kvrocks with Xcode 
toolchains 11 or above")
     endif()
 else()
     message(WARNING "The compiler you are currently using is not officially 
supported,
-        so you can try switching to GCC>=7 or Clang>=5 if you encounter 
problems")
+        so you can try switching to GCC>=8 or Clang>=8 if you encounter 
problems")
 endif()
 
 if(CMAKE_GENERATOR STREQUAL "Ninja")

Reply via email to