forked from osmocom/wireshark
CMake: Make Qt5 packages required if building Qt version
This stops folks failing when they don't have Qt but are still attempting to build the Qt version. Change-Id: I31eb9433b25ca9a717cd10bc165f3820ae31687e Reviewed-on: https://code.wireshark.org/review/24406 Petri-Dish: Graham Bloice <graham.bloice@trihedral.com> Tested-by: Petri Dish Buildbot Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
This commit is contained in:
parent
b4fc532372
commit
c43c58c434
|
@ -881,11 +881,19 @@ if(BUILD_wireshark)
|
|||
Qt5Svg
|
||||
Qt5Widgets
|
||||
)
|
||||
set(Qt5Core_OPTIONS REQUIRED)
|
||||
set(Qt5LinguistTools_OPTIONS REQUIRED)
|
||||
set(Qt5Multimedia_OPTIONS REQUIRED)
|
||||
set(Qt5PrintSupport_OPTIONS REQUIRED)
|
||||
set(Qt5Svg_OPTIONS REQUIRED)
|
||||
set(Qt5Widgets_OPTIONS REQUIRED)
|
||||
if (APPLE)
|
||||
set(PACKAGELIST ${PACKAGELIST} Qt5MacExtras)
|
||||
set(Qt5MacExtras_OPTIONS REQUIRED)
|
||||
endif()
|
||||
if( WIN32 )
|
||||
set(PACKAGELIST ${PACKAGELIST} Qt5WinExtras)
|
||||
set(Qt5WinExtras_OPTIONS REQUIRED)
|
||||
endif()
|
||||
set(QT_VERSION 5)
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue