Fix configure with Qt5Multimedia disabled.
ClosedPublic

Authored by palimaka on Jun 24 2017, 4:50 AM.

Details

Summary

When passed -DBUILD_TESTING=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=ON,
CMake failed because find_package(Qt5 COMPONENTS MULTIMEDIA) was treated as
required due to the previous find_package(Qt5 REQUIRED COMPONENTS Xml) call.

Finding Qt5Multimedia directly via its own config file ensures that it really
is treated as optional.

Test Plan

Configures and builds both with and without Qt5Multimedia enabled.

Diff Detail

Repository
R286 KFileMetaData
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
palimaka created this revision.Jun 24 2017, 4:50 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJun 24 2017, 4:50 AM
mgallien accepted this revision.Jun 24 2017, 3:55 PM
mgallien added a subscriber: mgallien.

Thanks for the help.
I did not knew this could be wrong.

This revision is now accepted and ready to land.Jun 24 2017, 3:55 PM
This revision was automatically updated to reflect the committed changes.