aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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 9451b8ee..5b6410f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,6 +219,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.
@@ -237,9 +238,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 format-api)
endif()
endif()
endif()