Skip to content

Commit

Permalink
cmake-utils.eclass: Add QA check that cmake-utils_src_prepare was run
Browse files Browse the repository at this point in the history
Closes: gentoo#4757
  • Loading branch information
SoapGentoo committed Sep 24, 2017
1 parent 70f3d4b commit 08c20f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eclass/cmake-utils.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ cmake-utils_src_prepare() {
fi

popd > /dev/null || die

_CMAKE_UTILS_SRC_PREPARE_HAS_RUN=1
}

# @VARIABLE: mycmakeargs
Expand All @@ -465,6 +467,10 @@ cmake-utils_src_prepare() {
cmake-utils_src_configure() {
debug-print-function ${FUNCNAME} "$@"

if [[ ! ${_CMAKE_UTILS_SRC_PREPARE_HAS_RUN} ]]; then
eqawarn "cmake-utils_src_prepare has not been run, please open a bug on https://bugs.gentoo.org/"
fi

[[ ${EAPI} == 5 ]] && _cmake_cleanup_cmake

_cmake_check_build_dir
Expand Down

0 comments on commit 08c20f9

Please sign in to comment.