[cmake] fix for CMP0045 warning