From 9a7612d2d0889fc097d091e633e12914183ae23d Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 2 Feb 2023 00:05:00 +0100 Subject: Kate: make it possible to force a mode for the "files" entry By default, kate will try to autodetect whether the project is a svn or git checkout or not. In case this does not give a satisfying result, the user can now set CMAKE_KATE_FILES_MODE to the mode he wants. --- Modules/CMakeFindKate.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Modules/CMakeFindKate.cmake') diff --git a/Modules/CMakeFindKate.cmake b/Modules/CMakeFindKate.cmake index 23fbe38d4f..521bc5caf8 100644 --- a/Modules/CMakeFindKate.cmake +++ b/Modules/CMakeFindKate.cmake @@ -19,3 +19,7 @@ endif() # This variable is used by the Kate generator and appended to the make invocation commands. set(CMAKE_KATE_MAKE_ARGUMENTS "${_CMAKE_KATE_INITIAL_MAKE_ARGS}" CACHE STRING "Additional command line arguments when Kate invokes make. Enter e.g. -j to get parallel builds") + + +set(CMAKE_KATE_FILES_MODE "AUTO" CACHE STRING "Option to override the version control detection and force a mode for the Kate project.") +set_property(CACHE CMAKE_KATE_FILES_MODE PROPERTY STRINGS "AUTO;SVN;GIT;LIST") -- cgit v1.2.1