Set dependencies of tidy target correctly

This commit is contained in:
Martchus 2017-10-24 01:01:29 +02:00
parent a869aa8def
commit 2203e0a335
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ if(NOT META_NO_TIDY AND EXISTS "${CLANG_FORMAT_RULES}")
COMMAND "${CLANG_FORMAT_BIN}" -style=file -i ${FORMATABLE_FILES} COMMAND "${CLANG_FORMAT_BIN}" -style=file -i ${FORMATABLE_FILES}
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Tidying ${META_PROJECT_NAME} sources using clang-format" 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) if(NOT TARGET tidy)
add_custom_target(tidy) add_custom_target(tidy)