aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-12 12:55:33 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-12 12:55:33 +0200
commit9ef0a32c2273d617b81fe47e1557f9d2754f0930 (patch)
tree1b091a5d7ce3cc0328e1274e1dbe01fc6d8ca682 /CMakeLists.txt
parent0db2db1d247a0a4e6e6545ec0d72879416e6226b (diff)
downloadlibquotient-9ef0a32c2273d617b81fe47e1557f9d2754f0930.tar.gz
libquotient-9ef0a32c2273d617b81fe47e1557f9d2754f0930.zip
CMakeLists.txt: fix update-api target when there's no clang-format
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e56e856..3eef0384 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -221,6 +221,7 @@ if (MATRIX_DOC_PATH AND GTAD_PATH)
${API_DEFS}
VERBATIM
)
+ add_custom_target(update-api DEPENDS generate-unformatted-api)
if (ABS_CLANG_FORMAT)
set(CLANG_FORMAT_ARGS -i -sort-includes ${CLANG_FORMAT_ARGS})
# FIXME: the list of files should be produced after GTAD has run.
@@ -235,9 +236,7 @@ if (MATRIX_DOC_PATH AND GTAD_PATH)
${ABS_CLANG_FORMAT} ${CLANG_FORMAT_ARGS} ${api_ALL_SRCS}
DEPENDS generate-unformatted-api
VERBATIM)
- add_custom_target(update-api DEPENDS format-api)
- else()
- add_custom_target(update-api DEPENDS generate-unformatted-api)
+ add_dependencies(update-api DEPENDS format-api)
endif()
endif()
endif()