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>
commitbf5d1fe5422d3740985be2eacb35f3e971f2a39d
parent6eaf8482bdc9fcc453457c6281cb84a1d62c0122
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeWed, 31 Mar 2021 16:47:31 +0200