mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 02:21:25 +00:00
cmake: Only warn if clang-format can't be found
This commit is contained in:
parent
7e5cbe18cf
commit
6ce6ffe5bd
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue