diff options
-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 |