Help: add documentation for Kate-related variable

This commit is contained in:
Alexander Neundorf 2023-02-01 23:16:42 +01:00
parent 77610c6cf0
commit 8a7aa2642b
3 changed files with 14 additions and 2 deletions

View File

@ -226,6 +226,7 @@ Variables that Change Behavior
/variable/CMAKE_INSTALL_MESSAGE
/variable/CMAKE_INSTALL_PREFIX
/variable/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
/variable/CMAKE_KATE_MAKE_ARGUMENTS
/variable/CMAKE_LIBRARY_PATH
/variable/CMAKE_LINK_DIRECTORIES_BEFORE
/variable/CMAKE_LINK_LIBRARIES_ONLY_TARGETS

View File

@ -0,0 +1,11 @@
CMAKE_KATE_MAKE_ARGUMENTS
-------------------------
.. versionadded:: 3.0
This cache variable is used by the Kate project generator. See
:manual:`cmake-generators(7)`.
This variable holds arguments which are used when Kate invokes the make
tool. By default it is initialized to hold flags to enable parallel builds
(using -j typically).

View File

@ -3,7 +3,7 @@
# This file is included in CMakeSystemSpecificInformation.cmake if
# the Eclipse CDT4 extra generator has been selected.
# the Kate extra generator has been selected.
# Try to find out how many CPUs we have and set the -j argument for make accordingly
@ -17,5 +17,5 @@ if("${_CMAKE_KATE_PROCESSOR_COUNT}" GREATER 1 AND CMAKE_HOST_UNIX AND "${CMA
set(_CMAKE_KATE_INITIAL_MAKE_ARGS "-j${_CMAKE_KATE_PROCESSOR_COUNT}")
endif()
# This variable is used by the Eclipse generator and appended to the make invocation commands.
# 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")