Skip to content

Commit

Permalink
Add WA for clang_format_check_all and cpplint_all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
vurusovs committed Jun 2, 2021
1 parent 9605df3 commit 65fe34e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/developer_package/clang_format/clang_format.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (ENABLE_CLANG_FORMAT)
endif()
endif()

if(ENABLE_CLANG_FORMAT)
if(ENABLE_CLANG_FORMAT AND NOT TARGET clang_format_check_all)
add_custom_target(clang_format_check_all)
add_custom_target(clang_format_fix_all)
set_target_properties(clang_format_check_all clang_format_fix_all
Expand Down
2 changes: 1 addition & 1 deletion cmake/developer_package/cpplint/cpplint.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(ENABLE_CPPLINT)
endif()
endif()

if(ENABLE_CPPLINT)
if(ENABLE_CPPLINT AND NOT TARGET cpplint_all)
add_custom_target(cpplint_all ALL)
set_target_properties(cpplint_all PROPERTIES FOLDER cpplint)
set(CPPLINT_ALL_OUTPUT_FILES "" CACHE INTERNAL "All cpplint output files")
Expand Down

0 comments on commit 65fe34e

Please sign in to comment.