diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-08-21 20:18:10 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-09-01 00:23:26 +1000 |
commit | ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7 (patch) | |
tree | 07e9a49de106ede9993c5e0a94254f4eec01aeb7 /eclass | |
parent | cmake-utils.eclass: Let cmake_comment_add_subdirectory take n arguments (diff) | |
download | gentoo-ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.tar.gz gentoo-ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.tar.bz2 gentoo-ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.zip |
kde5-functions.eclass: Make punt_bogus_dep detect !CMakeLists.txt
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde5-functions.eclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index da4cd1e59f40..d2eb8a6789e6 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -308,6 +308,10 @@ punt_bogus_dep() { local prefix=${1} local dep=${2} + if [[ ! -e "CMakeLists.txt" ]]; then + return + fi + pcregrep -Mni "(?s)find_package\s*\(\s*${prefix}[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}" # pcregrep returns non-zero on no matches/error |