summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikoli <nikoli@gmx.us>2016-01-26 01:04:10 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-01-26 01:07:03 +1100
commit83948becf477631f74025092000c48044c75143a (patch)
tree4a0663e60fb164df0d8330b5e629ba687b6f806e /eclass/cmake-utils.eclass
parentcmake-utils.eclass: declare some variables local (diff)
downloadgentoo-83948becf477631f74025092000c48044c75143a.tar.gz
gentoo-83948becf477631f74025092000c48044c75143a.tar.bz2
gentoo-83948becf477631f74025092000c48044c75143a.zip
cmake-utils.eclass: check exit codes of executed commands
Gentoo-bug: 544966
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index b0e9bb021327..58f93accb123 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -219,7 +219,7 @@ _check_build_dir() {
# Backwards compatibility for getting the value.
CMAKE_BUILD_DIR=${BUILD_DIR}
- mkdir -p "${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}" || die
echo ">>> Working in BUILD_DIR: \"$BUILD_DIR\""
}
@@ -431,7 +431,7 @@ enable_cmake-utils_src_configure() {
[[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && {
local name
for name in ${CMAKE_REMOVE_MODULES_LIST} ; do
- find "${S}" -name ${name}.cmake -exec rm -v {} +
+ find "${S}" -name ${name}.cmake -exec rm -v {} + || die
done
}