This commit is contained in:
Philippe Teuwen 2020-04-19 00:58:13 +02:00
parent 2e8c914c7b
commit 43d88c40e5

View file

@ -26,12 +26,9 @@ set(QT_PACKAGELIST
Qt5Widgets Qt5Widgets
Qt5Gui Qt5Gui
) )
foreach(_qt_package IN LISTS QT_PACKAGELIST)
find_package(${_qt_package} ${QT_FIND_PACKAGE_OPTIONS})
endforeach()
set(Qt5_FOUND ON) set(Qt5_FOUND ON)
foreach(_qt_package IN LISTS QT_PACKAGELIST) foreach(_qt_package IN LISTS QT_PACKAGELIST)
find_package(${_qt_package} ${QT_FIND_PACKAGE_OPTIONS})
if(NOT ${_qt_package}_FOUND) if(NOT ${_qt_package}_FOUND)
set(Qt5_FOUND OFF) set(Qt5_FOUND OFF)
endif(NOT ${_qt_package}_FOUND) endif(NOT ${_qt_package}_FOUND)