Commit b66a7d81 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use git commit hook

parent 50e1a23d
Pipeline #48704 skipped
...@@ -19,6 +19,9 @@ include(ECMGeneratePriFile) ...@@ -19,6 +19,9 @@ include(ECMGeneratePriFile)
include(ECMSetupVersion) include(ECMSetupVersion)
include(FeatureSummary) include(FeatureSummary)
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
include(KDEGitCommitHooks)
endif()
include(ECMQtDeclareLoggingCategory) include(ECMQtDeclareLoggingCategory)
set(QT_REQUIRED_VERSION "5.14.0") set(QT_REQUIRED_VERSION "5.14.0")
...@@ -78,4 +81,7 @@ install(FILES ...@@ -78,4 +81,7 @@ install(FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
) )
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