mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[cmake] add clang-format versions
add new versions of clang-format to detection script
This commit is contained in:
committed by
Martin Fleisz
parent
15d9e5e01a
commit
98daeb812e
@@ -1,12 +1,21 @@
|
||||
# get all project files
|
||||
file(GLOB_RECURSE ALL_SOURCE_FILES *.cpp *.c *.h *.m *.java)
|
||||
# minimum version required
|
||||
set(_CLANG_FORMAT_MINIMUM_VERSION 7.0.0)
|
||||
set(_CLANG_FORMAT_MINIMUM_VERSION 10.0.0)
|
||||
|
||||
find_program(CLANG_FORMAT
|
||||
NAMES
|
||||
clang-format-8
|
||||
clang-format-7
|
||||
clang-format-20
|
||||
clang-format-19
|
||||
clang-format-18
|
||||
clang-format-17
|
||||
clang-format-16
|
||||
clang-format-15
|
||||
clang-format-14
|
||||
clang-format-13
|
||||
clang-format-12
|
||||
clang-format-11
|
||||
clang-format-10
|
||||
clang-format
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user