From 27304d9082e1ef6c0f97c8c975bc108e729764f2 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Mon, 29 Aug 2022 23:49:29 +0800 Subject: [PATCH] gcc should not less than 7 (#12771) --- cmake/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a8469791d1..cc8a532001 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -40,8 +40,8 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose build type: Debug Release RelWithDebInfo MinSizeRel." FORCE) endif() -if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 8) - message(FATAL_ERROR "GCC version must not less than 8") +if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 7) + message(FATAL_ERROR "GCC version must not less than 7") endif() # Options