diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-06-30 14:13:14 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-06-30 14:13:14 +0900 |
commit | 8ddf663ac60332cfa83f829b8d40596f9fe1c926 (patch) | |
tree | 7c3f9ecb614077906ba7d60424b5123103c10a6f | |
parent | f58e3a24161db2cb2e400b5a686f140eb054f541 (diff) | |
download | libquotient-8ddf663ac60332cfa83f829b8d40596f9fe1c926.tar.gz libquotient-8ddf663ac60332cfa83f829b8d40596f9fe1c926.zip |
CMakeLists.txt: add clang-format invocation to update-api target
...instead of using a separate update-format-api target.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 874594e8..eafa95f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,13 +164,11 @@ if (MATRIX_DOC_PATH AND GTAD_PATH) list(APPEND api_HDRS ${H}) endforeach() set(CLANG_FORMAT_ARGS -i -sort-includes -verbose) - add_custom_target(update-format-api + add_custom_command(TARGET update-api POST_BUILD COMMAND ${ABS_CLANG_FORMAT} ${CLANG_FORMAT_ARGS} ${api_SRCS} COMMAND ${ABS_CLANG_FORMAT} ${CLANG_FORMAT_ARGS} ${api_HDRS} - DEPENDS update-api WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} VERBATIM - SOURCES .clang-format ) endif() endif() |