Skip to content

Commit

Permalink
depends: cmake: a készülő csomagokban is keresünk
Browse files Browse the repository at this point in the history
  • Loading branch information
rezso committed Aug 29, 2018
1 parent 26731c4 commit ecb76b5
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/steps/depends
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,29 @@ for pkg in $UB_PACKAGES; do
;;
# cmake fájl analízise
./usr/lib/cmake/*/*Config.cmake|./usr/lib/qt5/lib/cmake/*/*Config.cmake)
found=0
for cmakedep in `grep find_dependency $file | sed 's/.*find_dependency[(]//g' | sed 's/\s.*//g'`;do
cmakefile="lib/cmake/${cmakedep}/${cmakedep}Config.cmake"
if [ -f "/usr/${cmakefile}" ]; then
echo "/usr/${cmakefile}" >> "$UB_TMPDIR/file-noversion"
elif [ -f "/usr/lib/qt5/${cmakefile}" ]; then
found=1
fi
if [ -f "/usr/lib/qt5/${cmakefile}" ]; then
echo "/usr/lib/qt5/${cmakefile}" >> "$UB_TMPDIR/file-noversion"
else
error "${cmakefile} is required by $file but not found"
found=1
fi
for p in $UB_PACKAGES; do
if [ -f "$UB_PACKAGEDIR/$p/usr/${cmakefile}" ]; then
echo "/usr/${cmakefile}" >> "$UB_TMPDIR/file-noversion"
found=1
fi
if [ -f "$UB_PACKAGEDIR/$p/usr/lib/qt5/${cmakefile}" ]; then
echo "/usr/lib/qt5/${cmakefile}" >> "$UB_TMPDIR/file-noversion"
found=1
fi
done
if [ $found = 0 ]; then
error "/usr/${cmakefile} or /usr/lib/qt5/${cmakefile} is required by $file but not found"
fi
done
;;
Expand Down

0 comments on commit ecb76b5

Please sign in to comment.