diff --git a/CMakeLists.txt b/CMakeLists.txt index b7e721596e9..8c49ed74469 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,8 @@ project(MindSpore) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3.0) message(FATAL_ERROR "GCC version ${CMAKE_CXX_COMPILER_VERSION} must not be less than 7.3.0") - elseif(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.3.0) - message(WARNING "GCC version ${CMAKE_CXX_COMPILER_VERSION} is greater than 7.3.0, may cause unknown problems.") + elseif(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.4.0) + message(WARNING "GCC version ${CMAKE_CXX_COMPILER_VERSION} is greater than 9.4.0, may cause unknown problems.") endif() endif()