adapt to gcc11

This commit is contained in:
qiuzhongya 2022-12-09 17:05:35 +08:00
parent 2c538003fa
commit c10a4fd72f
2 changed files with 3 additions and 3 deletions

View File

@ -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 must be 7.3.0 and above, but found ${CMAKE_CXX_COMPILER_VERSION}")
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.")
elseif(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.3.0)
message(WARNING "GCC version ${CMAKE_CXX_COMPILER_VERSION} is greater than 11.3.0, may cause unknown problems.")
endif()
endif()

2
akg

@ -1 +1 @@
Subproject commit 6ab4b3fbc650d15086b01db0ffcd21321c575e96
Subproject commit a5ba9c3e8d94a34932a05c3e7d805ac83d7bf67e