Commit 8bcd051f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use git commit hook

parent 657d26c8
Pipeline #48717 skipped
...@@ -21,6 +21,9 @@ include(GenerateExportHeader) ...@@ -21,6 +21,9 @@ include(GenerateExportHeader)
include(ECMGenerateHeaders) include(ECMGenerateHeaders)
include(FeatureSummary) include(FeatureSummary)
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
include(KDEGitCommitHooks)
endif()
include(CheckFunctionExists) include(CheckFunctionExists)
include(ECMGeneratePriFile) include(ECMGeneratePriFile)
...@@ -108,5 +111,8 @@ if (BUILD_TESTING) ...@@ -108,5 +111,8 @@ if (BUILD_TESTING)
endif() endif()
add_subdirectory(doc) add_subdirectory(doc)
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) 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