Check cmake <foo>_FOUND variables for existance
ClosedPublic

Authored by heikobecker on May 19 2018, 8:08 AM.

Details

Summary

Otherwise if one passes -DCMAKE_DISABLE_FIND_PACKAGE_foo for all 5
optional dependencies cmake throws an error at you because they all
don't exist: 'if given arguments: "AND" "AND" "AND" "AND" Unknown
arguments specified'

Test Plan

Error went away, still passes if optional deps aren't
disabled

Diff Detail

Repository
R838 Flatpak Support: KDE Portal for XDG Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
heikobecker requested review of this revision.May 19 2018, 8:08 AM
heikobecker created this revision.
jgrulich accepted this revision.May 21 2018, 8:29 AM
This revision is now accepted and ready to land.May 21 2018, 8:29 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 21 2018, 8:29 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
This revision was automatically updated to reflect the committed changes.