1
0
mirror of https://github.com/altlinux/admc.git synced 2024-10-26 08:55:21 +03:00

cmake: Don't abort when clang-format is not available

clang-format executable should not be required to build
this project.
This commit is contained in:
Ivan A. Melnikov 2023-02-15 00:47:33 +04:00
parent 0a60e0f422
commit 10c45a0a64

View File

@ -14,7 +14,9 @@ function(prefix_clangformat_setup prefix)
set(CLANGFORMAT_EXECUTABLE ${clangformat_executable_tmp})
unset(clangformat_executable_tmp)
else()
message(FATAL_ERROR "ClangFormat: ${CLANGFORMAT_EXECUTABLE} not found! Aborting")
message(WARNING "${CLANGFORMAT_EXECUTABLE} executable not found!"
" ClangFormat targets will not be generated.")
return()
endif()
endif()