From eecb4ca99b8ae2c6acfa647efe25cee6344677d2 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 13 Dec 2023 14:14:18 -0800 Subject: [PATCH] Restrict clang version --- cmake/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 7c5cfee61116f..eb2b968dd1b0b 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -61,6 +61,8 @@ endif() if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 8) message(FATAL_ERROR "GCC version must be greater than or equal to 8") +elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 16) + message(FATAL_ERROR "GCC version must be greater than or equal to 16") endif() # Options