commit: 7e81e75e5948938a655089c05418bc8557e03f09
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 21 11:52:57 2021 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 21 13:17:36 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e81e75e
cmake.eclass: Document _cmake_check_build_dir and _cmake_modify-cmakelists
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
eclass/cmake.eclass | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
index 649e447d7e1..52bf5960f27 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() {