summaryrefslogtreecommitdiff
path: root/eclass/cmake.eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-02-21 13:30:54 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-02-21 13:33:01 +0100
commit47658a3692438894c64329fcfd33ae25ebe4ad74 (patch)
treed890c07d13d359542e3aff44dc1accf4fcb9e8c7 /eclass/cmake.eclass
parent7ba20cc083a22aa4d3b0434e9b615efe7140554a (diff)
downloadkde-47658a3692438894c64329fcfd33ae25ebe4ad74.tar.gz
kde-47658a3692438894c64329fcfd33ae25ebe4ad74.tar.bz2
kde-47658a3692438894c64329fcfd33ae25ebe4ad74.zip
cmake.eclass: Merge mycmakeargs description into cmake_src_configure()
Makes it a part of cmake_src_configure() rather than oddly appearing under FUNCTIONS. Bug: https://bugs.gentoo.org/771876 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/cmake.eclass')
-rw-r--r--eclass/cmake.eclass15
1 files changed, 5 insertions, 10 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 5bead99f6f2..8bf9be82716 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -364,25 +364,20 @@ cmake_src_prepare() {
_CMAKE_SRC_PREPARE_HAS_RUN=1
}
-# @VARIABLE: mycmakeargs
-# @DEFAULT_UNSET
+# @FUNCTION: cmake_src_configure
# @DESCRIPTION:
-# Optional cmake defines as a bash array. Should be defined before calling
-# cmake_src_configure.
+# General function for configuring with cmake. Default behaviour is to start an
+# out-of-source build.
+# Passes arguments to cmake by reading from an optionally pre-defined local
+# mycmakeargs bash array.
# @CODE
# src_configure() {
# local mycmakeargs=(
# $(cmake_use_find_package foo LibFoo)
# )
-#
# cmake_src_configure
# }
# @CODE
-
-# @FUNCTION: cmake_src_configure
-# @DESCRIPTION:
-# General function for configuring with cmake. Default behaviour is to start an
-# out-of-source build.
cmake_src_configure() {
debug-print-function ${FUNCNAME} "$@"