kde5-functions.eclass: Make punt_bogus_dep detect !CMakeLists.txt

This commit is contained in:
Andreas Sturmlechner
2016-09-01 00:23:26 +10:00
committed by Michael Palimaka
parent aa8f73fd21
commit ceab82c96f
+4
View File
@@ -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