[cmake] don't set CMP0022 if cmake version is less than 2.8.12