added cmake bits to handle pitr version