From cc3b79128aafe55f48ac7b13882e2a503be45cac Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Sun, 17 Jan 2016 20:33:50 +1100 Subject: cmake-utils.eclass: use a proper if statement --- eclass/cmake-utils.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index b9d11e99b1f..ee0838044a7 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -404,12 +404,12 @@ _modify-cmakelists() { _cleanup_cmake() { : ${CMAKE_USE_DIR:=${S}} - [[ "${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 if CMakeLists.txt exist and if no then die if [[ ! -e ${CMAKE_USE_DIR}/CMakeLists.txt ]] ; then -- cgit v1.2.3