Commit 4ab0f4b0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use git commit hook

parent 39be422e
Pipeline #48691 skipped
......@@ -18,6 +18,9 @@ include(ECMGeneratePriFile)
include(ECMSetupVersion)
include(FeatureSummary)
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
include(KDEGitCommitHooks)
endif()
include(ECMQtDeclareLoggingCategory)
......@@ -92,4 +95,7 @@ if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment