From 6ce6ffe5bdb26b2fa68911c32db7fd8f2c89b94c Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 21 Dec 2019 17:35:53 +0100 Subject: [PATCH] cmake: Only warn if clang-format can't be found --- cmake/ClangToolkit.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/ClangToolkit.cmake b/cmake/ClangToolkit.cmake index 9ee4c743..51fc929c 100644 --- a/cmake/ClangToolkit.cmake +++ b/cmake/ClangToolkit.cmake @@ -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()