cmake: Replace deprecated get_target_property()