Commit 5d59bba8 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix build with KF 5.78

kde_configure_git_pre_commit_hook is only available in unreleased KF5
parent d64f6706
...@@ -47,7 +47,10 @@ include(ECMGenerateHeaders) ...@@ -47,7 +47,10 @@ include(ECMGenerateHeaders)
include(GenerateExportHeader) include(GenerateExportHeader)
include(ECMPackageConfigHelpers) include(ECMPackageConfigHelpers)
include(KDEClangFormat) include(KDEClangFormat)
if (KF5_VERSION VERSION_GREATER_EQUAL 5.79)
include(KDEGitCommitHooks) include(KDEGitCommitHooks)
endif()
include_directories(${ACCOUNTSQT_INCLUDE_DIRS} ${SIGNONQT_INCLUDE_DIRS}) include_directories(${ACCOUNTSQT_INCLUDE_DIRS} ${SIGNONQT_INCLUDE_DIRS})
...@@ -56,6 +59,8 @@ add_subdirectory(src) ...@@ -56,6 +59,8 @@ add_subdirectory(src)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) if (KF5_VERSION VERSION_GREATER_EQUAL 5.79)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES 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