Fix cmake in case Qt5QuickWidgets is disabled
Also, make it work by not expanding Qt5QuickWidgets_VERSION_STRING before
if()
command is parsed.
See also: https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/267
Signed-off-by: Andreas Sturmlechner asturm@gentoo.org