File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ add_clang_library(clangFormat
3333file (GLOB_RECURSE files
3434 *.cpp
3535 *.h
36- ../.. /include /clang/Format/*.h
37- ../.. /tools/clang-format/*.cpp
38- ../.. /unittests/Format/*.cpp
39- ../.. /unittests/Format/*.h
36+ ${CLANG_SOURCE_DIR} /include /clang/Format/*.h
37+ ${CLANG_SOURCE_DIR} /tools/clang-format/*.cpp
38+ ${CLANG_SOURCE_DIR} /unittests/Format/*.cpp
39+ ${CLANG_SOURCE_DIR} /unittests/Format/*.h
4040 )
4141
4242set (check_format_depends)
@@ -46,8 +46,8 @@ foreach (file IN LISTS files)
4646 COMMAND clang-format ${file} | diff -u ${file} -
4747 VERBATIM
4848 COMMENT "Checking format of ${file} ..."
49- )
50- list (APPEND check_format_depends " clang-format-check-format${i} " )
49+ )
50+ list (APPEND check_format_depends clang-format-check-format${i} )
5151
5252 math (EXPR i ${i} +1)
5353endforeach ()
You can’t perform that action at this time.
0 commit comments