Fix error when calling configure/qt-configure-module
Commit 9a473a3c9b246f4895ae73d7060745b8b199a6c5 introduced a
find_package call in a configure.cmake file, very subtly breaking
top-level builds with configure or calls to qt-configure-module for
qt3d.
The find_package call results in errors of the cmake call that runs
QtProcessConfigureArgs.cmake (see bug report for details).
Guard the find_package call by checking QT_CONFIGURE_RUNNING.
Fixes: QTBUG-92163
Change-Id: Ib192bbfce6fb9a1cc3b65dd7824f76db3a99aa43
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>