summaryrefslogtreecommitdiff
path: root/eclass
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 14:17:36 +0100
commit7e81e75e5948938a655089c05418bc8557e03f09 (patch)
treef43eee4c557918d6cba2e8414361e77b3db4e915 /eclass
parentcmake.eclass: Merge mycmakeargs description into cmake_src_configure() (diff)
downloadgentoo-7e81e75e5948938a655089c05418bc8557e03f09.tar.gz
gentoo-7e81e75e5948938a655089c05418bc8557e03f09.tar.bz2
gentoo-7e81e75e5948938a655089c05418bc8557e03f09.zip
cmake.eclass: Document _cmake_check_build_dir and _cmake_modify-cmakelists
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to '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 649e447d7e1d..52bf5960f272 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() {