Set dependencies of tidy target correctly

experiment/srcref_basic_cfg
Martchus 5 years ago
parent a869aa8def
commit 2203e0a335
  1. 2
      cmake/modules/BasicConfig.cmake

@ -207,7 +207,7 @@ if(NOT META_NO_TIDY AND EXISTS "${CLANG_FORMAT_RULES}")
COMMAND "${CLANG_FORMAT_BIN}" -style=file -i ${FORMATABLE_FILES}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Tidying ${META_PROJECT_NAME} sources using clang-format"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/.clang-format"
DEPENDS "${FORMATABLE_FILES};${CMAKE_CURRENT_SOURCE_DIR}/.clang-format"
)
if(NOT TARGET tidy)
add_custom_target(tidy)

Loading…
Cancel
Save