cmake: Only warn if clang-format can't be found

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-12-21 17:35:53 +01:00
parent 7e5cbe18cf
commit 6ce6ffe5bd

View file

@ -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()