From 47658a3692438894c64329fcfd33ae25ebe4ad74 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 21 Feb 2021 13:30:54 +0100 Subject: 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 --- eclass/cmake.eclass | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'eclass/cmake.eclass') 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} "$@" -- cgit v1.2.3