summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-01-26 01:04:11 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-01-26 01:07:04 +1100
commit98f55297aa8b7514458cbc6b4f759978584ee0fc (patch)
treefb159218b7c1a8bcdd9bc5bea4e62c5b99cad781 /eclass/cmake-utils.eclass
parentcmake-utils.eclass: check exit codes of executed commands (diff)
downloadgentoo-98f55297aa8b7514458cbc6b4f759978584ee0fc.tar.gz
gentoo-98f55297aa8b7514458cbc6b4f759978584ee0fc.tar.bz2
gentoo-98f55297aa8b7514458cbc6b4f759978584ee0fc.zip
cmake-utils.eclass: use a proper if statement
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 58f93accb123..b20f5c24b7c9 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -428,12 +428,12 @@ enable_cmake-utils_src_prepare() {
enable_cmake-utils_src_configure() {
debug-print-function ${FUNCNAME} "$@"
- [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] && {
+ if [[ "${CMAKE_REMOVE_MODULES}" == "yes" ]] ; then
local name
for name in ${CMAKE_REMOVE_MODULES_LIST} ; do
find "${S}" -name ${name}.cmake -exec rm -v {} + || die
done
- }
+ fi
_check_build_dir