diff options
Diffstat (limited to 'eclass/cmake-utils.eclass')
| -rw-r--r-- | eclass/cmake-utils.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
