MOD: Reduce clang version (#16755)

This commit is contained in:
Stalary
2023-02-15 08:58:17 +08:00
committed by GitHub
parent 040a715251
commit 92417cedec

View File

@ -487,8 +487,8 @@ if (COMPILER_GCC)
endif ()
if (COMPILER_CLANG)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "14")
message(FATAL_ERROR "Need Clang version at least 14")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13")
message(FATAL_ERROR "Need Clang version at least 13")
endif()
add_compile_options(-fcolor-diagnostics -fno-limit-debug-info -Wpedantic)