cmake: Only warn if clang-format can't be found
This commit is contained in:
parent
7e5cbe18cf
commit
6ce6ffe5bd
|
@ -15,7 +15,8 @@ function(clang_format)
|
|||
set(CLANG_FORMAT_BIN "${clang_format_bin_tmp}" CACHE PATH "Path (or name) of the clang-format binary")
|
||||
unset(clang_format_bin_tmp)
|
||||
else()
|
||||
message(FATAL_ERROR "Clang: Could not find clang-format at path '${CLANG_FORMAT_BIN}'.")
|
||||
message(WARNING "Clang: Could not find clang-format at path '${CLANG_FORMAT_BIN}'. Disabling clang-format...")
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue