mirror of
https://github.com/altlinux/admc.git
synced 2025-03-11 08:58:20 +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:
parent
0a60e0f422
commit
10c45a0a64
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user