Are these two `set_target_properties` lines necessary if the below `foreach` loop is added?