Skip to content

Commit

Permalink
Simplified clang-format finding
Browse files Browse the repository at this point in the history
  • Loading branch information
pinam45 committed Oct 5, 2024
1 parent a72393a commit 9369e54
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,7 @@ endif()

# Generate format target?
if(DYNAMICBITSET_FORMAT_TARGET)
find_program(
CLANG_FORMAT clang-format
NAMES
clang-format-13
clang-format-12
clang-format-11
clang-format-10
clang-format-9
clang-format-8
clang-format-7
clang-format-6
)
find_program(CLANG_FORMAT clang-format)
if(${CLANG_FORMAT} STREQUAL CLANG_FORMAT-NOTFOUND)
message(WARNING "clang-format not found, format targets not generated")
set(DYNAMICBITSET_FORMAT_TARGET OFF)
Expand Down

0 comments on commit 9369e54

Please sign in to comment.