aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-02-21 12:52:57 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-02-21 13:06:44 +0100
commit0bb55f6eaf3c718efe89f9458756a9c4559a344c (patch)
tree9bba2abfc3cfe3451d43525c9c7eec672e961257 /eclass/cmake.eclass
parentcmake.eclass: Fix mycmakeargs documentation (diff)
downloadkde-0bb55f6eaf3c718efe89f9458756a9c4559a344c.tar.gz
kde-0bb55f6eaf3c718efe89f9458756a9c4559a344c.tar.bz2
kde-0bb55f6eaf3c718efe89f9458756a9c4559a344c.zip
cmake.eclass: Document _cmake_check_build_dir and _cmake_modify-cmakelists
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/cmake.eclass')
-rw-r--r--eclass/cmake.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index e9543c1fd3..ec3c9bf8d7 100644
--- a/eclass/cmake.eclass
+++ b/eclass/cmake.eclass
@@ -135,6 +135,9 @@ _cmake_banned_func() {
die "${FUNCNAME[1]} is banned. use -D$1<related_CMake_variable>=\"\$(usex $2)\" instead"
}
+# @FUNCTION: _cmake_check_build_dir
+# @INTERNAL
+# @DESCRIPTION:
# Determine using IN or OUT source build
_cmake_check_build_dir() {
: ${CMAKE_USE_DIR:=${S}}
@@ -268,6 +271,9 @@ cmake-utils_use() { _cmake_banned_func "" "$@" ; }
# Banned. Use -DNOFOO=$(usex !foo) instead.
cmake-utils_useno() { _cmake_banned_func "" "$@" ; }
+# @FUNCTION: _cmake_modify-cmakelists
+# @INTERNAL
+# @DESCRIPTION:
# Internal function for modifying hardcoded definitions.
# Removes dangerous definitions that override Gentoo settings.
_cmake_modify-cmakelists() {