diff options
author | Alexander Neundorf <neundorf@kde.org> | 2023-02-02 00:05:00 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-02-06 10:21:19 -0500 |
commit | 9a7612d2d0889fc097d091e633e12914183ae23d (patch) | |
tree | 79d269ab4d53c8f8e5e8af0200324c3c835ee4a7 /Modules/CMakeFindKate.cmake | |
parent | 8a7aa2642bcc63b0434b1e5a212931cd96d27e31 (diff) | |
download | cmake-9a7612d2d0889fc097d091e633e12914183ae23d.tar.gz |
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.
Diffstat (limited to 'Modules/CMakeFindKate.cmake')
-rw-r--r-- | Modules/CMakeFindKate.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
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<some_number> 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") |