summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2023-02-01 23:05:00 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-06 15:21:19 (GMT)
commit9a7612d2d0889fc097d091e633e12914183ae23d (patch)
tree79d269ab4d53c8f8e5e8af0200324c3c835ee4a7 /Help/variable
parent8a7aa2642bcc63b0434b1e5a212931cd96d27e31 (diff)
downloadCMake-9a7612d2d0889fc097d091e633e12914183ae23d.zip
CMake-9a7612d2d0889fc097d091e633e12914183ae23d.tar.gz
CMake-9a7612d2d0889fc097d091e633e12914183ae23d.tar.bz2
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 'Help/variable')
-rw-r--r--Help/variable/CMAKE_KATE_FILES_MODE.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_KATE_FILES_MODE.rst b/Help/variable/CMAKE_KATE_FILES_MODE.rst
new file mode 100644
index 0000000..e568e00
--- /dev/null
+++ b/Help/variable/CMAKE_KATE_FILES_MODE.rst
@@ -0,0 +1,20 @@
+CMAKE_KATE_FILES_MODE
+---------------------
+
+.. versionadded:: 3.27
+
+This cache variable is used by the Kate project generator and controls
+to what mode the ``files`` entry in the project file will be set. See
+:manual:`cmake-generators(7)`.
+
+Possible values are ``AUTO``, ``SVN``, ``GIT`` and ``LIST``.
+
+When set to ``LIST``, CMake will put the list of source files known to CMake
+in the project file.
+When set to ``SVN``, CMake will put ``svn`` into the project file so that Kate
+will use svn to retrieve the list of files in the project.
+When set to ``GIT``, CMake will put ``git`` into the project file so that Kate
+will use git to retrieve the list of files in the project.
+When unset or set to ``AUTO``, CMake will try to detect whether the
+source directory is part of a git or svn checkout or not, and put the
+respective entry into the project file.