Static compression ratio is determined by the bore/stroke and combustion chamber volume only. Cam specs will have a significant effect on dynamic compression though, which is why high-compression pistons are necessary on engines with lots of duration and overlap.