Only set a property on lazy_test-static if it is present as a target.