aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDEGitCommitHooks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/KDEGitCommitHooks.cmake')
-rw-r--r--kde-modules/KDEGitCommitHooks.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/kde-modules/KDEGitCommitHooks.cmake b/kde-modules/KDEGitCommitHooks.cmake
index c545352d..f9c48ae4 100644
--- a/kde-modules/KDEGitCommitHooks.cmake
+++ b/kde-modules/KDEGitCommitHooks.cmake
@@ -61,6 +61,11 @@ function(KDE_CONFIGURE_GIT_PRE_COMMIT_HOOK)
)
return()
endif()
+ if (COMMAND KDE_CLANG_FORMAT)
+ set(HAS_CLANG_FORMAT_COMMAND_INCLUDED TRUE)
+ else()
+ set(HAS_CLANG_FORMAT_COMMAND_INCLUDED FALSE)
+ endif()
set(_write_hook FALSE)
if(KDE_CLANG_FORMAT_EXECUTABLE)