[cmake] fix clang-format detection
This commit is contained in:
parent
187001ed55
commit
f61d1fd66a
@ -2,7 +2,7 @@
|
||||
file(GLOB_RECURSE ALL_SOURCE_FILES *.cpp *.c *.h *.m *.java)
|
||||
|
||||
include(ClangDetectTool)
|
||||
clang_detect_tool(CLANG_FORMAT clang-format)
|
||||
clang_detect_tool(CLANG_FORMAT clang-format "")
|
||||
|
||||
if (NOT CLANG_FORMAT)
|
||||
message(WARNING "clang-format not found in path! code format target not available.")
|
||||
|
Loading…
Reference in New Issue
Block a user