Commit 659ae5f5 authored by Heiko Becker's avatar Heiko Becker
Browse files

Check cmake <foo>_FOUND variables for existance

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

Differential Revision: https://phabricator.kde.org/D12976
parent a69b7217
......@@ -50,7 +50,7 @@ set_package_properties(Epoxy PROPERTIES DESCRIPTION "libepoxy"
PURPOSE "Required for screencast portal"
)
if (${PipeWire_FOUND} AND ${SPA_FOUND} AND ${GLIB2_FOUND} AND ${GBM_FOUND} AND ${Epoxy_FOUND})
if (PipeWire_FOUND AND SPA_FOUND AND GLIB2_FOUND AND GBM_FOUND AND Epoxy_FOUND)
set (SCREENCAST_ENABLED true)
else()
set (SCREENCAST_ENABLED false)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment