Skip to content

Commit

Permalink
eclass/cmake: fixup documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Bauman <[email protected]>
  • Loading branch information
FuzzyGophers committed Dec 16, 2020
1 parent 0475536 commit d08198b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions eclass/cmake.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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} "$@"

Expand Down

0 comments on commit d08198b

Please sign in to comment.