Workaround for kde_configure_git_pre_commit_hook not working on android CI

This commit is contained in:
Bart De Vries 2021-06-19 15:39:40 +02:00
parent bd738610bc
commit 719879072e
1 changed files with 5 additions and 1 deletions

View File

@ -63,4 +63,8 @@ feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAG
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
if (NOT ANDROID)
# inside if-statement to work around problems with gitlab Android CI
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
endif()