Use a target in FindDiscount (modern cmake) rather than variables
Test Plan: Things still builds
Reviewers: kde-buildsystem, apol
Reviewed By: apol
Subscribers: apol, aacid, Okular
Tags: Okular
Differential Revision: https://phabricator.kde.org/D12672