cmake: Replace deprecated get_target_property()
Cherry-pick from upstream master.
This is needed to avoid complaints from cmake-3.9.0-8.fc25.x86_64
.
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Cherry-pick from upstream master.
This is needed to avoid complaints from cmake-3.9.0-8.fc25.x86_64
.