mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-29 11:01:23 +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")
|
set(CLANG_FORMAT_BIN "${clang_format_bin_tmp}" CACHE PATH "Path (or name) of the clang-format binary")
|
||||||
unset(clang_format_bin_tmp)
|
unset(clang_format_bin_tmp)
|
||||||
else()
|
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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue