commit: d08198baec3e243336ae1085065fcdc3f12122ef Author: Aaron Bauman <bman <AT> gentoo <DOT> org> AuthorDate: Wed Dec 16 22:54:17 2020 +0000 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> CommitDate: Wed Dec 16 23:13:24 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d08198ba
eclass/cmake: fixup documentation Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> eclass/cmake.eclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 62fa0271570..384556fd7d1 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -17,6 +17,11 @@ # out-of-source builds (default), in-source builds and an implementation of the # well-known use_enable function for CMake. +# @VARIABLE: _CMAKE_ECLASS +# @INTERNAL +# @DESCRIPTION: +# If null set to 1 + if [[ -z ${_CMAKE_ECLASS} ]]; then _CMAKE_ECLASS=1 @@ -135,7 +140,10 @@ _cmake_banned_func() { die "${FUNCNAME[1]} is banned. use -D$1<related_CMake_variable>=\"\$(usex $2)\" instead" } +# @FUNCTION: _cmake_check_build_dir +# @DESCRIPTION: # Determine using IN or OUT source build + _cmake_check_build_dir() { : ${CMAKE_USE_DIR:=${S}} if [[ -n ${CMAKE_IN_SOURCE_BUILD} ]]; then @@ -268,8 +276,12 @@ 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() { debug-print-function ${FUNCNAME} "$@"