Use set_property instead of set_target_properties.