Skip to content

Commit 77c2b8c

Browse files
committed
cmake: fix discovery of clang-format
1 parent fbb6592 commit 77c2b8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ add_subdirectory(cpp2rust)
9090
add_subdirectory(libcc2rs)
9191
add_subdirectory(tests)
9292

93-
find_program(CLANG_FORMAT clang-format-22 clang-format)
93+
find_program(CLANG_FORMAT NAMES clang-format-22 clang-format)
94+
9495
file(GLOB_RECURSE ALL_CXX_SOURCES
9596
cpp2rust/*.cpp cpp2rust/*.h tests/*.cpp)
9697

0 commit comments

Comments
 (0)