Set dependencies of tidy target correctly
This commit is contained in:
parent
a869aa8def
commit
2203e0a335
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue