Skip to content

Commit

Permalink
Add MOC search paths
Browse files Browse the repository at this point in the history
In case the variables $prefix, $libexecdir, $libdir are not defined, or
the MOC is not found there, let’s additionally check some common places.
  • Loading branch information
Gliese852 committed Aug 8, 2024
1 parent 7c50a7a commit dc406c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion m4/qt-validate-moc.m4
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ AC_DEFUN([FC_QT6_VALIDATE_MOC], [
dnl Try to find a Qt 6 'moc'
AS_IF([test "x$MOCCMD" = "x"],
[for mocpath in "moc" "qtchooser -run-tool=moc -qt=6" "moc-qt6" "$prefix/lib/qt6/moc" "$prefix/lib/qt6/libexec/moc" "$libexecdir/moc" "$libexecdir/qt6/moc" "$libdir/qt6/moc" "$libdir/qt6/libexec/moc"
[for mocpath in "moc" "qtchooser -run-tool=moc -qt=6" "moc-qt6" \
"/usr/lib/qt6/moc" "/usr/lib/qt6/libexec/moc" \
"/usr/lib64/qt6/moc" "/usr/lib64/qt6/libexec/moc" \
"$prefix/lib/qt6/moc" "$prefix/lib/qt6/libexec/moc" \
"$libexecdir/moc" "$libexecdir/qt6/moc" \
"$libdir/qt6/moc" "$libdir/qt6/libexec/moc"
do
if test "x$MOCCMD" = "x" ; then
FC_QT6_TRY_MOC([$mocpath])
Expand Down

0 comments on commit dc406c3

Please sign in to comment.