cad/freecad: improve pyside2 detection
pyside2 changed the way it reported it's variables (they're cmake target
properties now, not variables) sometime over the last releases. FreeCAD
did not support pyside2's new way of doing thing, resulting in certain
dialogs not working.
PR: 237987
Reported by: denverh at comcast dot net