Fix clang-format lookup to do what the comment says (#197)

This commit is contained in:
Amaury Chamayou
2020-05-21 17:11:01 +01:00
committed by GitHub
parent 97e695bedc
commit 7ccd6c36e8

View File

@@ -57,8 +57,7 @@ macro(clangformat_targets)
# tool. It does not work with older versions as AfterCaseLabel is not supported
# in earlier versions.
find_program(CLANG_FORMAT NAMES
clang-format-9
clang-format)
clang-format-9)
# If we've found a clang-format tool, generate a target for it, otherwise emit
# a warning.