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