Skip to content

Commit

Permalink
Restrict clang version
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Dec 13, 2023
1 parent 17eaf9b commit eecb4ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eecb4ca

Please sign in to comment.